ZT:=REF(C,1)*1.1-C 0.01 AND H=C;{涨停}
DF:=(C-REF(C,1))/REF(C,1)*100
AA:=BARSLAST(DF);
箱顶:=DRAWLINE(DF,O,REF(DF,1),REF(O,1),1),COLORMAGENTA;
CROSS(C,箱顶) AND REF(DF,1)=1 AND ZT;
ZT:=REF(C,1)*1.1-C 0.01 AND H=C;{涨停}
DF:=(C-REF(C,1))/REF(C,1)*100
AA:=BARSLAST(DF);
箱顶:=DRAWLINE(DF,O,REF(DF,1),REF(O,1),1),COLORMAGENTA;
CROSS(C,箱顶) AND REF(DF,1)=1 AND ZT;