DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIF,9);
MACD:(DIF-DEA)*2,COLORSTICK,LINETHICK9;
DRAWICON(CROSS(MACD,DIF)&&DIF
STICKLINE(DIF>DEA&&DEA>0&&DIF
STICKLINE(CROSS(DIF,MACD)&&DIF>DEA&&DEA>0,0,MACD,1,0);
DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIF,9);
MACD:(DIF-DEA)*2,COLORSTICK,LINETHICK9;
DRAWICON(CROSS(MACD,DIF)&&DIF
STICKLINE(DIF>DEA&&DEA>0&&DIF
STICKLINE(CROSS(DIF,MACD)&&DIF>DEA&&DEA>0,0,MACD,1,0);