{DRAWICON(V/REF(MA(V,5),1) 2,LOW*0.988,5);}
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND CLOSE 0,0.8,0.01,0,DYBLOCK),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND CLOSE 0,0.9,0.01,0,HYBLOCK),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0,0.01,0,GNBLOCK),COLORRED;
{涨停-红色}
STICKLINE(CLOSE/REF(CLOSE,1) 1.099,O,C,3.0,0),COLORRED;
{跌停-绿色}
STICKLINE(REF(CLOSE,1)*0.902 CLOSE,O,C,3,0),COLORGREEN;
ZT:=CLOSE/REF(CLOSE,1) 1.099 C=H C!=O{出现涨停,并且不是点停板};
A1:=BARSLAST(ZT),NODRAW{上次涨停距今天数};
L1:IF(SUM(ZT,0)=CONST(SUM(ZT,0)) A1 =31 CURRBARSCOUNT+A1 =31,REF(L,A1),DRAWNULL),COLORRED;
MA1:MA(CLOSE,M1),COLORWHITE,LINETHICK1;
MA2:MA(CLOSE,M2),COLORYELLOW,LINETHICK1;
MA3:MA(CLOSE,M3),COLORMAGENTA,LINETHICK2;
MA4:MA(CLOSE,M4),COLORGREEN,LINETHICK1;