VAR1:=IF(C>REF(C,1)*1.02,IF(C>REF(C,1),V*100,-V*100)*1.5,V);
VAR2:=IF(C>REF(C,1)*1.05,IF(C>REF(C,1),V*100,-V*100)*2,V);
VAR3:=IF(C>REF(C,1)*1.07,IF(C>REF(C,1),V*100,-V*100)*2.5,V);
VAR4:=MAX(MAX(VAR1,VAR2),VAR3);
VAR5:=CONST(MA(SUM(VAR4,5),20));
VAR6:=SUM(VAR4,5)<=REF(SUM(VAR4,5),1);
VARGS:=SUM(VAR4,5)>CONST(MA(SUM(VAR4,5),20));
SM:SUM(VAR4,5);
DRAWBAND(SM,180,VAR5,RGB(39,139,39));
STICKLINE(VAR6 AND VARGS,SM,VAR5,0,0),COLORGREEN;
XG:VAR4/REF(V,1)>200;
DRAWTEXT(XG=1,VAR5,'异动'),COLORYELLOW;