N1:=5;
N2:=10;
N3:=20;
N4:=30;
N5:=60;
N6:=120;
MA1:MA(CLOSE,N1);
MA2:MA(CLOSE,N2);
MA3:MA(CLOSE,N3);
MA4:MA(CLOSE,N4);
MA5:MA(CLOSE,N5);
MA6:MA(CLOSE,N6);
YUMA5:=(MA(CLOSE,N1-1)*(N1-1)+C)/5;
YUMA10:=(MA(CLOSE,N2-1)*(N2-1)+C)/N2;
YUMA20:=(MA(CLOSE,N3-1)*(N3-1)+C)/N3;
YUMA60:=( MA(CLOSE,N4-1)*(N4-1)+C)/N4;
YUMA30:=( MA(CLOSE,N5-1)*(N5-1)+C)/N5;
YUMA112:=( MA(CLOSE,N6-1)*(N6-1)+C)/N6;
DRAWTEXT(ISLASTBAR=1 ,MA1,'O') ,COLORWHITE,FONTSIZE15;
DRAWTEXT(ISLASTBAR=1 ,MA2,'O') ,COLORYELLOW,FONTSIZE15;
DRAWTEXT(ISLASTBAR=1 ,MA3,'O') ,COLORMAGENTA,FONTSIZE15;
DRAWTEXT(ISLASTBAR=1 ,MA4,'O') ,COLORLIGHTGREEN,FONTSIZE15;
DRAWTEXT(ISLASTBAR=1 ,MA5,'O') ,COLORLIGHTGREY,FONTSIZE15;
DRAWTEXT(ISLASTBAR=1 ,MA6,'O') ,COLORRED,FONTSIZE15;
DRAWTEXT(ISLASTBAR=1 ,MA1,'O') ,COLORWHITE,FONTSIZE15;