DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);
DEA := EMA(DIFF,9);
macd : 2*(DIFF-DEA), COLORSTICK;
STICKLINE(MacD>=REF(MACD,1),REF(MACD,1),MACD,2.5,0),COLORMAGENTA;
STICKLINE(MACD>=REF(MACD,1)AND(MACD<0),REF(MACD,1),MACD,2.5,0),COLORFF0099;
STICKLINE(MACD<REF(MACD,1),REF(MACD,1),MACD,2.5,0),COLOR00CC00;
D:DIFF;
DE:DEA;