MA5:MA(C,5);
MA10:MA(C,10);
MA20:MA(C,20);
MA60:MA(C,60);
N:=7;
N1:=20;
M:=20;
V1:=MA(vol,5);
V2:=VOL/REF(V1,1)>2;
ABC1:=MA(CLOSE,M);
ABC2:=HHV(HIGH,M);
ABC3:=LLV(LOW,M);
ABC4:=(ABC2-ABC1)/ABC1;
ABC5:=(ABC1-ABC3)/ABC1;
ABC:=REF(ABC4,1)< 0.15 AND REF(ABC5,1)< 0.15;
TP1:=HHV(HIGH,M);
TP:=HIGH=TP1;
V11:=REF(((HHV(H,N)-LLV(L,N))/LLV(L,N)),1)<=(N1/100) AND C>=REF(HHV(H,N),1) AND BARSCOUNT(C)>N;
DTPL:=MA5>MA10 AND MA10>MA20;
横盘突破选股XG1:=IF(V11,1,0) AND DTPL;
突破:=BARSLASTCOUNT(横盘突破选股XG1)=1;
DRAWICON(突破,L,9);
STICKLINE(突破,OPEN,CLOSE,1,0),COLORYELLOW;
DRAWTEXT(突破,L*0.98,' ★突破'),COLORMAGENTA;