通达信进攻撤退主图指标公式源码


MA5:MA(CLOSE,5),COLORFFFFFF,LINETHICK2;
MA21:MA(CLOSE,21),COLOR00FFFF,LINETHICK2;

 
魔鬼:=EMA(SLOPE(C,21)*20+C,42),COLOR000000;
卖:=CROSS(魔鬼,天使);
DRAWTEXT(买,L*0.92,'进攻'),COLORYELLOW;
DRAWTEXT(卖,H*1.08,'撤退'),COLORWHITE;
STICKLINE(天使>=魔鬼,CLOSE,OPEN,2,1),COLORRED;

 
STICKLINE(天使>=魔鬼,CLOSE,OPEN,2,0),COLOR0000DD;
STICKLINE(天使<魔鬼,CLOSE,OPEN,1,0),COLOREEEE00;
STICKLINE(天使<魔鬼,CLOSE,OPEN,3,0),COLORCCCC00;
STICKLINE(天使<魔鬼,CLOSE,OPEN,2,0),COLORFFFF00;
STICKLINE(CROSS(魔鬼,天使),OPEN,CLOSE,2.5,0),COLORWHITE;