DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIF,9);
MACD:(DIF-DEA)*2,COLORSTICK;
GG:=CROSS(BACKSET(CROSS(0,MACD),REF(HHVBARS(MACD,BARSLAST(MACD<0)+1),1)+2),0.5);
HG:DRAWLINE(GG,MACD,REF(GG,1),REF(MACD,1),1),COLORGREEN;
DRAWICON(CROSS(MACD,REF(HG,2)) AND MACD>REF(HG,2),MACD*1.3,15);
MACD60:=HHV(MACD,60),COLORA67D3D,LINETHICK1;
STICKLINE(CROSS(MACD,REF(MACD60,1) ),MACD60,0,1,0),COLORMAGENTA;