通达信MACD仓位控制指标公式

通达信财源滚滚指标公式

通达信MACD仓位控制指标公式:

SHORT:=12;

LONG:=26;

M:=9;

DIF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);

DEA : EMA(DIF,M);

macd : 2*(DIF-DEA),COLORstICK;

STICKLINE(MacD>0 AND MACD>REF(MACD,1) ,0 ,MACD ,6,0),COLORRED;

STICKLINE(MACD>0 AND MACD<REF(MACD,1) ,0 ,MACD ,6,0),COLORYELLOW;

STICKLINE(MACD<0 AND MACD>REF(MACD,1) ,0 ,MACD ,6,0),COLORGREEN;

STICKLINE(MACD<0 AND MACD<REF(MACD,1) ,0 ,MACD ,6,0),COLORBLUE;

通达信MACD超级指标公式