N:=30;
M:=2;
VAR28:EMA(COST(40),10),COLORRED,DOTLINE;
VAR29:EMA(COST(70),10),COLORGREEN,DOTLINE;
DRAWBAND(VAR28,RGB(80,00,20),VAR29,RGB(60,60,18));
DRAWKLINE(H,O,L,C);
CHGW:=H=HHV(H,N);
T:=BARSLAST(CHGW);
HH:=REF(H,T);
HH30:=HHV(H,30);
LL30:=LLV(L,30);
HL:=(HH30-LL30)/LL30*100;
ABC1:=crOSS(C,REF(HH,1));
ABC2:=V/REF(V,1)>=M;
ABC3:=C/REF(C,1)>1.03 AND (C-L)/(H-L)>0.6;
ABC4:=REF(HL< 20,1);
HGW:=ABC1 AND ABC2 AND ABC3 AND ABC4;
AA:=vol>REF(V,1)*1.9;
ZT:=C>REF(C,1)*1.095;
STICKLINE(HGW,H,L,0,0),COLOR00FFFF;
STICKLINE(HGW,O,C,1,0),COLOR00FFFF;
DRAWICON(HGW,L,1);
STICKLINE(FILTER(HGW=1,5)OR AA AND ZT,CLOSE,OPEN,1,0),COLORMAGENTA;
STICKLINE(FILTER(HGW=1,1) OR AA AND ZT,CLOSE,OPEN,1,0),COLOR40FF00;
M5:MA(C,5);
M8:MA(C,8);
DRAWICON(FILTER(HGW=1,5)OR AA AND ZT,LOW*1.001,9);
DRAWTEXT(FILTER(HGW=1,5)OR AA AND ZT,L,' ★涨停突破')COLORYELLOW;
AABC1:=VOL< REF(LLV(VOL,13),1);
AABC2:=VOL< REF(LLV(VOL,55),1);
STICKLINE(AA AND ZT,CLOSE,OPEN,1,0),COLORYELLOW;