N:=1;
RDIF:EMA("macd.DIF#DAY"(13,21,5),5)*N,COLORLIGRAY;
RDEA:EMA("MacD.DEA#DAY"(13,21,5),5)*N,COLORLIBLUE;
DIF:EMA(CLOSE,13)-EMA(CLOSE,21),COLORWHITE;
DEA:EMA(DIF,8),COLORYELLOW;
{ _通达信股票指标公式}
MACD:(DIF-DEA)*2,COLORWHITE;
IF(MACD>0,MACD,DRAWNULL),LINESTICK,COLORRED;
IF(MACD<=0,MACD,DRAWNULL),LINESTICK,COLORCYAN;