通达信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;

{-----------------------------------}