DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIF,9);
MACD:(DIF-DEA)*2,COLORSTICK;
DRAWICON(REF((DIF-DEA)*2,1)
(DIF-DEA)*2>=REF((DIF-DEA)*2,1) AND (DIF-DEA)
MACD1:=REF(MACD,1);
MACD2:=REF(MACD,2);
DRAWICON(MACD1>0 AND MACD>MACD1 AND MACD2>MACD1,(DIF-DEA)*2*1.2,1);