DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
macd:=(DIF-DEA)*2,COLORSTICK;
STICKLINE(MacD>0,0,MACD,-1,0),COLORBLUE;
STICKLINE(MACD<0,0,MACD,-1,0),COLORBLUE;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
macd:=(DIF-DEA)*2,COLORSTICK;
STICKLINE(MacD>0,0,MACD,-1,0),COLORBLUE;
STICKLINE(MACD<0,0,MACD,-1,0),COLORBLUE;