{云指破主图源码如下}
{云指破---通达信主图}
MA1:MA(CLOSE,5);
MA2:MA(CLOSE,10);
MA3:MA(CLOSE,20);
MA4:MA(CLOSE,30);
MA5:MA(CLOSE,60);
MA6:MA(CLOSE,120);
BAA:=O>REF(H,1) AND C<O AND H/O<1.01;
BAB:=VOL=HHV(VOL,30);
XG:=BAA AND BAB;
云顶线:IF(XG,H,REF(H,BARSLAST(XG))),LINETHICK2,COLORGREEN;
DAA:=BARSLAST(XG);
DAB:=BETWEEN(DAA,3,380);
EAA:=(L<REF(H,DAA) AND H>REF(H,DAA)) OR (REF(H,1)<REF(H,DAA) AND C>REF(H,DAA));
EAB:=COUNT(EAA,DAA)=1;
BC1:=REF(H,DAA)/L<1.099;
OUTX:=DAB AND EAA AND EAB AND BC1;
DRAWTEXT(OUTX,L*0.98,'★云破'),COLORWHITE;
B1:=H/MAX(C,O)>1.03 AND L>REF(MAX(C,O),1) AND L=MIN(O,C)
AND (H-MAX(C,O))>(MAX(O,C)-MIN(O,C)) AND REF(C,1)/REF(C,2)<1.09 AND C>O;
B2:=VOL=HHV(VOL,30);
B3:=B1 AND B2;
指尖线:IF(B3,H,REF(H,BARSLAST(B3))),LINETHICK2,COLORRED;
B4:=BARSLAST(B3);
S1:=BETWEEN(B4,3,380);
S2:=L<REF(H,B4) AND H>REF(H,B4);
S3:=COUNT(S2,B4)=1;
S4:=REF(H,B4)/L<1.099 AND REF(C,1)<REF(H,B4);
OUTXG:=S1 AND S2 AND S3 AND S4;
DRAWTEXT(OUTXG,L*0.98,'★指破'),COLORWHITE;
YPXG1:=COUNT(REF(OUTX,1),15)=1 AND REF(C,1)<云顶线 AND C>云顶线 AND
C/REF(C,1)>1.01 AND EVERY(NOT(REF(OUTX,1)),5) AND MA(C,10)>MA(C,20) AND MA(C,20)>MA(C,30) AND MA(C,30)>MA(C,60);
DRAWTEXT(YPXG1,L*0.98,'★云破二次买'),COLORYELLOW;
{云指破副图副图源码如下}
BAA:=O>REF(H,1) AND C<O AND H/O<1.002;
BAB:=VOL=HHV(VOL,30);
BAE:=BAA AND BAB;
DAA:=BARSLAST(BAE);
DAB:=BETWEEN(DAA,3,380);
EAA:=(L<REF(H,DAA) AND H>REF(H,DAA)) OR (REF(H,1)<REF(H,DAA) AND C>REF(H,DAA));
EAB:=COUNT(EAA,DAA)=1;
BC1:=REF(H,DAA)/L<1.099;
OUTX:=DAB AND EAA AND EAB AND BC1;
B1:=H/MAX(C,O)>1.03 AND L>REF(MAX(C,O),1) AND L=MIN(O,C)
AND (H-MAX(C,O))>(MAX(O,C)-MIN(O,C)) AND REF(C,1)/REF(C,2)<1.09 AND C>O;
B2:=VOL=HHV(VOL,30);
B3:=B1 AND B2;
B4:=BARSLAST(B3);
S1:=BETWEEN(B4,3,380);
S2:=L<REF(H,B4) AND H>REF(H,B4);
S3:=COUNT(S2,B4)=1;
S4:=REF(H,B4)/L<1.099 AND REF(C,1)<REF(H,B4);
OUTXG:=S1 AND S2 AND S3 AND S4;
云破:IF(OUTX,1,0),COLORWHITE;
DRAWTEXT(云破,0.5,'云破买'),COLORWHITE;
指破:IF(OUTXG,1,0),COLORRED;
DRAWTEXT(指破,0.5,'指破买'),COLORRED;
ABC:=O>REF(H,1) AND C<O AND H/O<1.01;
ABD:=VOL=HHV(VOL,30);
XGD:=ABC AND ABD;
云顶线:=IF(XGD,H,REF(H,BARSLAST(XGD)));
云破二次买:=COUNT(REF(OUTX,1),15)=1 AND REF(C,1)<云顶线 AND C>云顶线 AND
C/REF(C,1)>1.01 AND EVERY(NOT(REF(OUTX,1)),5) AND MA(C,10)>MA(C,20) AND MA(C,20)>MA(C,30) AND MA(C,30)>MA(C,60);
云二买:IF(云破二次买,1,0),COLORYELLOW;
DRAWTEXT(云二买,0.5,'云二买'),COLORYELLOW;