当前位置: > 热议

BIAS画线突破压力线买入选股,自动画趋势线和前高前低(短线好指标)

时间:2022-04-23 03:13:08 热议 我要投稿

(自动画线公式大全)

{BIAS画线突破压力线买入}

BIAS1 :(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;

OBV:=BIAS1;

P:=5;

A1:=REF(OBV,P)=HHV(OBV,2*P+1);

B1:=FILTER(A1,P);

C1:=BACKSET(B1,P+1);

D1:=FILTER(C1,P);{高点}

A2:=REF(OBV,P)=LLV(OBV,2*P+1);

B2:=FILTER(A2,P);

C2:=BACKSET(B2,P+1);

D2:=FILTER(C2,P);{低点}

上:REF(OBV,BARSLAST(D1)),COLORFF00FF,NODRAW;

下:REF(OBV,BARSLAST(D2)),COLOR00FF00,NODRAW;

向上:CROSS(OBV,上*1.01),NODRAW;

相对能量:(OBV-下)/(上-下)*100,COLORYELLOW,NODRAW;

R11:=BACKSET(ISLASTBAR,BARSLAST(D1)+1);

S11:=R11>REF(R11,1);

DRAWLINE(D1,OBV,S11,OBV,1),COLORYELLOW;

T11:=BACKSET(ISLASTBAR,BARSLAST(D2)+1);

U11:=T11>REF(T11,1);

DRAWLINE(D2,OBV,U11,OBV,1),COLOR00FF00;

STICKLINE(C>0,下,下,1,0),COLOR00FF00;

STICKLINE(C>0,上,上,1,0),COLORFF00FF;

DRAWTEXT(CROSS(OBV,上*1.01),上,"上"),COLORYELLOW;

DRAWTEXT(CROSS(下*0.99,OBV),下,"下"),COLORYELLOW;

DRAWICON(D1,OBV,1);

DRAWICON(D2,OBV,2);

{向上突破高点连线,向下突破低点连线往往是转折点。}

画线突破选股

BIAS1 :=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;

OBV:=BIAS1;

P:=5;

A1:=REF(OBV,P)=HHV(OBV,2*P+1);

B1:=FILTER(A1,P);

C1:=BACKSET(B1,P+1);

D1:=FILTER(C1,P);

上:=REF(OBV,BARSLAST(D1));

CROSS(OBV,上*1.01);

自动画趋势线和前高前低。。指标(短线好指标):

QA:=REF(H,10)=HHV(H,2*10+1);QB:=BACKSET(QA,10+1);QC:=FILTER(QB,10) AND H=HHV(H,10+1);QD:=BARSLAST(QC);QE:=IF(QC,CURRBARSCOUNT,0);QF:=IF(QD,REF(QE,QD),QE);QG:=CONST(QF);QH:=REF(QF,QD+1);QW:=CONST(QH);DRAWLINE(CURRBARSCOUNT=QW,H,CURRBARSCOUNT=QG,H,1),COLORGREEN;DRAWLINE(CURRBARSCOUNT=QW,H,ISLASTBAR,REF(H,QW-1),1),COLOR0099FF,POINTDOT;DRAWLINE(CURRBARSCOUNT=QG,H,ISLASTBAR,REF(H,QG-1),1),COLOR0099FF,POINTDOT;QM:=INTPART(3*8/5);QR:=REF(H,QM)=HHV(H,2*QM+1);QT:=FILTER(QR,QM);QY:=BACKSET(QT,QM+1);QU:=FILTER(QY,QM);QI:=BACKSET(ISLASTBAR,BARSLAST(QU)+1);QP:=QI>REF(QI,1);DRAWLINE(QU,H,QP,H,1),COLORRED;QA1:=REF(L,8)=LLV(L,2*8+1);QB1:=BACKSET(QA1,8+1);QC1:=FILTER(QB1,8) AND L=LLV(L,8+1);QD1:=BARSLAST(QC1);QE1:=IF(QC1,CURRBARSCOUNT,0);QF1:=IF(QD1,REF(L,QD1),L);QG1:=IF(QD1,REF(QE1,QD1),QE1);QH1:=CONST(QG1);QW1:=REF(QF1,QD1+1);QM1:=REF(QG1,QD1+1);QR1:=CONST(QM1);DRAWLINE(CURRBARSCOUNT=QR1,L,CURRBARSCOUNT=QH1,L,1),COLORBLUE;DRAWLINE(CURRBARSCOUNT=QH1,L,ISLASTBAR,REF(L,QH1-1),1),COLORWHITE,POINTDOT;DRAWLINE(CURRBARSCOUNT=QR1,L,ISLASTBAR,REF(L,QR1-1),1),COLORWHITE,POINTDOT;QT1:=REF(L,QM)=LLV(L,2*QM+1);QY1:=FILTER(QT1,QM);QU1:=BACKSET(QY1,QM+1);QI1:=FILTER(QU1,QM);QP1:=BACKSET(ISLASTBAR,BARSLAST(QI1)+1);QJ1:=QP1>REF(QP1,1);DRAWLINE(QI1,L,QJ1,L,1),COLORRED;SR1:=REF(HIGH,10)=HHV(HIGH,2*10+1);SR2:=FILTER(SR1,10);SR3:=BACKSET(SR2,10+1);HD:=FILTER(SR3,10);

前高:=REF(H,BARSLAST(HD));

DRAWICON(CROSS(C,前高),L-0.20,3);{突破前高的信号};