以下是详细的MACD公式(源码 副图 通达信)清晰明了(无源码的请下载附件导入)
详细的MACD公式(源码 副图 通达信)清晰明了
DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIFF,9);
MACD:2*(DIFF-DEA), COLORSTICK,LINETHICK4;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,0.9,0),COLORYELLOW;
STICKLINE(MACD<REF(MACD,1)AND MACD<0,0,MACD,0.9,0),COLORGREEN;
STICKLINE(MACD>REF(MACD,1)AND MACD,0,MACD,0.9,0),COLORBLUE;
STICKLINE(MACD>REF(MACD,1)AND MACD>0,0,MACD,0.9,0),COLORRED;
213466137.jpg
|