以下是通达信动力MACD指标公式(无源码的请下载附件导入)
{动力MACD}
XY_做多动力:(((CLOSE - LLV(CLOSE,250)) / LLV(CLOSE,250)) * 100),COLORRED,LINETHICK2;
XY_做空动力:(((HHV(CLOSE,250) - CLOSE) / CLOSE) * 100),COLORGREEN,LINETHICK2;
DIFF : (EMA(XY_做多动力,12) - EMA(XY_做多动力,26))*5,COLORFFFFFF;
DEA : EMA(DIFF,9),COLOR00FFFF;
MACD : 2*(DIFF-DEA), COLORSTICK;
610577643.png
|