DIFF:=(EMA(CLOSE,12)-EMA(CLOSE,26));
DIF:=DIFF/MA(C,4);
DEA:=EMA(DIF,9)/MA(C,12);
MACD:(DIF-DEA)*2,COLORSTICK;
IF(MACD<REF(MACD,1) AND MACD>0,MACD,DRAWNULL)COLORBLUE LINETHICK2;
IF(MACD>=REF(MACD,1) AND MACD<0,MACD,DRAWNULL)COLORYELLOW LINETHICK2;