D1:=20
D2:=60
D3:=120
EA1:EMA(CLOSE,D1),COLORWHITE;
EA2:EMA(CLOSE,D2),COLORRED;
EA3:EMA(CLOSE,D3),COLORCYAN;
MA1:MA(CLOSE,D1),COLORWHITE,DOTLINE;
MA2:MA(CLOSE,D2),COLORRED,DOTLINE;
MA3:MA(CLOSE,D3),COLORCYAN,DOTLINE;
NN:=CURRBARSCOUNT(0);
DOT1:IF(NN=D1,C,DRAWNULL),COLORWHITE,POINTDOT,LINETHICK9;
DOT2:IF(NN=D2,C,DRAWNULL),COLORWHITE,POINTDOT,LINETHICK9;
DOT3:IF(NN=D3,C,DRAWNULL),COLORWHITE,POINTDOT,LINETHICK9;