N:=5;
EDV:=IF(C REF(C,1),V*100,-V*100);
EDV1:=IF(C REF(C,1)*1.02,EDV*1.5,V);
EDV2:=IF(C REF(C,1)*1.05,EDV*2,V);
EDV3:=IF(C REF(C,1)*1.07,EDV*2.5,V);
EDVD:=maX(MAX(EDV1,EDV2),EDV3);
SM:SUM(EDVD,N);
DRAWBAND(SM,180,CONst(MA(SM,20)),RGB(39,139,39));
STICKLINE(SM =REF(SM,1) AND SM CONST(MA(SM,20)),SM,CONST(MA(SM,20)),0,0),COLORGREEN;
XG:EDVD/REF(V,1)
DRAWTEXT(XG=1,CONST(MA(SM,20)),'异动'),COLORYELLOW;