A3:=MA(CLOSE,3);
A5:=MA(CLOSE,5);
M35:=(A3-A5)/A5*100;
STICKLINE(M35>0,3,M35+3,4,0),colorred;
STICKLINE(M35<0,3,M35+3,4,0),color006600;
ll0:3,colorblack;
Ll1:M35+3;
A20:=MA(CLOSE,5);
A30:=MA(CLOSE,10);
MM10:(A20-A30)/A30*100;
STICKLINE(MM10>0.3,0,MM10,7,0),colorred;
STICKLINE(MM10>=0 AND MM10<=0.3,0,MM10,3,0),colorbrown;
STICKLINE(MM10<0 AND MM10>=-0.3,0,MM10,3,0),colorblue;
STICKLINE(MM10<-0.3,0,MM10,7,0),color006600;
STICKLINE(MM10>0 AND M35>0,0,MM10,9,0),colorff0099;
l0:0,colorblack;
cc:=BARSLAST(MM10<0);
dd=BARSLAST(MM10>0);
DRAWTEXT(Cc>0,0,TOSTRING(Cc,0)),colorff0099;
DRAWTEXT(dd>0,1.1*MM10,TOSTRING(dd,0)),colorblue;