通达信《四色MACD》副图指标公式源码

通达信《四色MACD》副图指标公式源码:

0;

DIF :EMA(CLOSE,12) - EMA(CLOSE,26);

DEA : EMA(DIF,9);

MACD : (DIF-DEA)*2,COLORSTICK;{wwwzhibiaowcom}

STICKLINE(DIF>0 AND MACD>0,0,MACD,7,0),COLORRED;STICKLINE(DIF>0 AND MACD<0,0,MACD,7,0),COLORYELLOW;STICKLINE(DIF<0 AND MACD>0,0,MACD,7,0),COLORGREEN;STICKLINE(DIF<0 AND MACD<0,0,MACD,7,0),COLORBLUE;

通达信《四色MACD》副图指标公式源码:

四色MACD