通達(dá)信 青紅白線副圖指標(biāo)
源碼:
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,'指標(biāo)'),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;
反彈需謹(jǐn)慎: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;