通达信  青红白线副图指标源码:F:=E...

通达信  青红白线副图指标

源码:
F:=EMA(C,5)-EMA(C,21);
A:=EMA(F,8);
MD:=(F-A)*2,COLORSTICK;
均线差:F,COLORWHITE;
EMA8:=A,COLORYELLOW;
多:IF((均线差>0),均线差,DRAWNULL),COLORRED,LINETHICK3;
空:IF((均线差<0),均线差,DRAWNULL),COLORGREEN,LINETHICK2;
DRAWTEXT_FIX(1,0.02,0,0,'指标'),COLORRED;
STICKLINE(MD>=0 AND MD<REF(MD,1),0,MD,2,1),COLORGREEN;
下跌趋势:IF(MD>=0 AND MD<REF(MD,1),MD,0),COLORGREEN,NODRAW;
STICKLINE(MD<0 AND MD<REF(MD,1),0,MD,2,1),COLORGRAY;
持有趋势:IF(MD<0 AND MD<REF(MD,1),MD,0),COLORGRAY,NODRAW;
STICKLINE(MD<=0 AND MD>REF(MD,1),0,MD,2,1),COLORMAGENTA;
反弹需谨慎:IF(MD<=0 AND MD>REF(MD,1),MD,0),COLORMAGENTA,NODRAW;
STICKLINE(MD>=0 AND MD>REF(MD,1),0,MD,2,1),COLORRED;
上升趋势:IF(MD>=0 AND MD>REF(MD,1),MD,0),COLORRED,NODRAW;

(0)

相关推荐