以下是通达信MACD形态推演源码附图(无源码的请下载附件导入)
DIFF:(EMA(CLOSE,12)-EMA(CLOSE,26))/EMA(CLOSE,26)*100;
DEA:EMA(DIFF,9);
MACD:2*(DIFF-DEA),COLORSTICK;
STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,1,0),COLORMAGENTA;
STICKLINE(MACD<REF(MACD,1) AND MACD<0,0,MACD,1,0),COLORFF937F;
{-----------------------------------}
621577759.png
|