SHORT:=12;LONG:=26;MID:=9;
DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:=EMA(DIF,MID);
macd:=(DIF-DEA)*2;
DIFF1:0-DIF;
DEA1:0-DEA;
MacD1:0-MACD, COLORSTICK;
SHORT:=12;LONG:=26;MID:=9;
DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:=EMA(DIF,MID);
macd:=(DIF-DEA)*2;
DIFF1:0-DIF;
DEA1:0-DEA;
MacD1:0-MACD, COLORSTICK;