DIFF1:=EMA(CLOSE,16) - EMA(CLOSE,58);
DEA1:=EMA(DIFF1,88);
macd1:2*(DIFF1-DEA1)*100 ;
MAMacD1:MA(MACD1,5),COLORWHITE;
DIFF:=EMA(CLOSE,8) - EMA(CLOSE,26);
DEA:=EMA(DIFF,50);
MACD:2*(DIFF-DEA)*100 ;
MAMACD:MA(MACD,5),COLORWHITE;
XG:MACD1>MAMACD1 AND MACD>MAMACD AND MACD<0;
STICKLINE(MACD1<MAMACD1,0,MACD1,4,0),COLORGREEN;
STICKLINE(MACD>MAMACD,MACD1*0.6,0,4,0),COLORYELLOW;
STICKLINE(MACD<0,MAMACD,MACD1,4,0),COLORGREEN;
STICKLINE(MACD1>MAMACD1 AND MACD>MAMACD ,0,MACD1,4,0),COLORRED;