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