DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG),LINETHICK1;
DEA:=EMA(DIF,MID),LINETHICK2;
MACD:=(DIF-DEA)*2,COLORSTICK;
STICKLINE(MACD>0 AND MACD>=REF(MACD,1),0,MACD,1,0),COLOR0000FF;
STICKLINE(MACD>0 AND MACD
STICKLINE(MACD<0 AND MACD
STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,1,0),COLOR006633;
DIFF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG),LINETHICK1;
DEAA:EMA(DIF,MID),COLOR00FFFF,LINETHICK1;