追:MA((C+H+L)/3,3),COLORRED,LINETHICK4;
K1:=BACKSET(追[
]逃:IF(K1,追,DRAWNULL),COLORGREEN,LINETHICK4;
方向多:MA((C+H+L)/3,10),COLORMAGENTA,LINETHICK2;
K2:=BACKSET(方向多[
]方向空:IF(K2,方向多,DRAWNULL),COLORYELLOW,LINETHICK2;
追3:=REF(追,1);
方向多2:=REF(方向多,1);
MA2:=MA((C+H+L)/3,20);
MA3:=MA((C+H+L)/3,60);
ZC:=REF(C,1);
恐慌:=MA((C+H+L)/3,10)*IF(CAPITAL=0,0.9,0.80),COLORBROWN;
逃顶:=MA((C+H+L)/3,10)*IF(CAPITAL=0,1.04,1.1),POINTDOT,COLORGREEN;
超卖:=MA((C+H+L)/3,10)*IF(CAPITAL=0,0.95,0.9),POINTDOT,COLORCYAN;
疯狂:=MA((C+H+L)/3,10)*IF(CAPITAL=0,1.08,1.2),COLORRED;
持股:NOT(K1 OR K2),NODRAW;
DRAWTEXT((C>逃顶)AND(C
DRAWTEXT(追>逃顶,逃顶,'疯'),COLORYELLOW;
进:=NOT(K1 AND K2);
加:=NOT(K1 OR K2);
减:=K1 OR K2;
出:=K1 AND K2;
DRAWTEXT(进 AND NOT(REF(进,1)),追+C/20,'进'),COLORRED;
DRAWTEXT(加 AND NOT(REF(加,1)),方向多+C/10,'加'),COLORRED;
DRAWTEXT(减 AND REF(加,1),方向多-C/10,'减'),COLORRED;
DRAWTEXT(出 AND NOT(REF(出,1)),追-C/20,'出'),COLORRED;