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(MacD0,MACD,DRAWNULL)COLORBLUE LINETHICK2;
IF(MACD>=REF(MACD,1) AND MACD<0,MACD,DRAWNULL)COLORYELLOW LINETHICK2;
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(MacD0,MACD,DRAWNULL)COLORBLUE LINETHICK2;
IF(MACD>=REF(MACD,1) AND MACD<0,MACD,DRAWNULL)COLORYELLOW LINETHICK2;