D1:=20;
D2:=60;
D3:=120;
SA1:MA(CLOSE,D1),DOTLINE,COLORWHITE;
SA2:MA(CLOSE,D2),DOTLINE,COLORYELLOW;
SA3:MA(CLOSE,D3),DOTLINE,COLORRED;
EA1:EMA(CLOSE,D1),COLORWHITE;
EA2:EMA(CLOSE,D2),COLORYELLOW;
EA3:EMA(CLOSE,D3),COLORRED;
DRAWICON(CURRBARSCOUNT=D1,C,41);
DRAWICON(CURRBARSCOUNT=D2,C,41);
DRAWICON(CURRBARSCOUNT=D3,C,41);