1,DOTLINE;
-1,DOTLINE;
DIFF:=EMA(CLOSE,21)-EMA(CLOSE,34);
DEA:=EMA(DIFF,8);
macd:=20*(DIFF-DEA);
MARD:=SMA(MacD,2,1);
MARD,COLORSTICK;
STICKLINE(MACD>MARD,MACD,MARD,3,0),COLOR0000FF;
STICKLINE(MACD<MARD,MACD,MARD,5,0),COLORFF0000;
DRAWICON(crOSS(MACD,MARD),MACD,1);
DRAWICON(CROSS(MARD,MACD),MARD,2);