NOTEXT1:=EMA(C,30);
NOTEXT2:=EMA(C,45);
DRAWBAND(NOTEXT1,RGB(173,173,39),NOTEXT2,RGB(173,173,39));
NOTEXT3:=EMA(C,90);
NOTEXT4:=EMA(C,114);
DRAWBAND(NOTEXT3,RGB(45,106,168),NOTEXT4,RGB(45,106,168));
NOTEXT5:=EMA(C,140);
NOTEXT6:=EMA(C,164);
DRAWBAND(NOTEXT5,RGB(185,49,151),NOTEXT6,RGB(185,49,151));
A:=EMA(EMA(EMA((3*C+L+H)/5,20),2),2);
逃顶:=IFF(crOSS(84,SMA(MAX(C-REF(C,1),0),6,1)/SMA(Abs(C-REF(C,1)),6,1)*100) AND 100*(H-A)/A>20,1,0);
DRAWICON(逃顶,H*1.03,2);
CS:=IF(C>=1,10000,100000);
涨停10:=1.10*REF(C,1)-49/CS;
涨停5 :=1.05*REF(C,1)-49/CS;
ST:=NAMELIKE('S') OR NAMELIKE('*S');
涨停:=IF(ST,C>=涨停5,C>=涨停10);
STICKLINE(涨停,O,C,3,0),COLORMAGENTA;