DIF:EMA(CLOSE,12) - EMA(CLOSE,26),COLOR00FFFF;
DEA:EMA(DIF,9),COLORWHITE,NODRAW,LINETHICK2;
macd:2*(DIF-DEA),COLORRED,NODRAW;
DEA1:EMA(DIF,9),COLORWHITE,LINETHICK5;
DIF,IF(DEA1,DIF,DRAWNULL),COLOR00FFFF,LINETHICK5;
IF(DIF
IF(DIF>REF(DIF,1),DIF,DRAWNULL),COLORRED,LINETHICK5;