DIFF:=(EMA(CLOSE/INDEXC,12)-EMA(CLOSE/INDEXC,26))*1000;
DEA:=EMA(DIFF,9);
macd : 2*(DIFF-DEA), COLORSTICK;
STICKLINE(MacD>=REF(MACD,1),REF(MACD,1),MACD,2.5,0),COLORFF00FF;
STICKLINE(MACD>=REF(MACD,1)AND(MACD<0),REF(MACD,1),MACD,2.5,0),COLORFF0099;
STICKLINE(MACD
D:DIFF;
DE:DEA;