DIFF:=(EMA(CLOSE,7)-EMA(CLOSE,11));
DIF:=DIFF/MA(C,4);
DEA:=EMA(DIF,5)/MA(C,11);
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;