N:=12;M:=26; P:=9;
DIF:EMA(CLOSE,N)-EMA(CLOSE,M);
DEA:EMA(DIF,P);
N1:=60;M1:=120; P1:=45;
DIF1:EMA(CLOSE,N1)-EMA(CLOSE,M1);
DEA1:EMA(DIF1,P1);
ERIC:=CROSS(DEA1,DIF1);
MACD:(DIF1-DEA1)*2,COLORSTICK;
N:=12;M:=26; P:=9;
DIF:EMA(CLOSE,N)-EMA(CLOSE,M);
DEA:EMA(DIF,P);
N1:=60;M1:=120; P1:=45;
DIF1:EMA(CLOSE,N1)-EMA(CLOSE,M1);
DEA1:EMA(DIF1,P1);
ERIC:=CROSS(DEA1,DIF1);
MACD:(DIF1-DEA1)*2,COLORSTICK;