w:sma(winner(c),3,1)*100linethick1,ColorFF8080;
sma(winner(c),10,1)*100,Colorgreen;
PARTLINE(1,100),ColorFF8080,SHIFT6;
PARTLINE(1,1),ColorFF8080,SHIFT6;
PARTLINE(1,50),ColorFF8080,SHIFT6;
w1:if(w>=10,w,0)linethick0,ColorFFFFFF;
w2:if(w>=1 and w<10,w*10,0)linethick0,Color00FFFF;
w3:if(w>=0.1 and w<1,w*100,0)linethick0,ColorFFFF00;
w4:if(w>=0.01 and w<0.1,w*1000,0)linethick0,ColorFF80FF;
w5:if(w>=0.001 and w<0.01,w*10000,0)linethick0,colorblue;
w6:if(w>=0.0001 and w<0.001,w*100000,0)linethick0,Color00FF00;
w7:if(w>=0.00001 and w<0.0001,w*1000000,0)linethick0,ColorFF00FF;
STICKLINE(w1,0,w1,0.1,1),ColorFFFFFF;STICKLINE(w2,0,w2,3,1),Color00FFFF;
STICKLINE(w3,0,w3,3,1),ColorFFFF00;STICKLINE(w4,0,w4,6,1),ColorFF80FF;
STICKLINE(w5,0,w5,6,1),colorblue;STICKLINE(w6,0,w6,6,1),Color00FF00;
STICKLINE(w7,0,w7,6,1),ColorFF00FF;STICKLINE(w*100=0,0,36,8,1),Colorred;
PARTLINE(w1,w1),ColorFFFFFF;
DRAWTEXT(barslast(w1=0)=1,0,'1'),ColorFFFFFF;
DRAWTEXT(barslast(w2=0)=1,0,'2'),Color00FFFF;
DRAWTEXT(barslast(w3=0)=1,0,'3'),ColorFFFF00;
DRAWTEXT(barslast(w4=0)=1,0,'4'),ColorFF80FF;
DRAWTEXT(barslast(w5=0)=1,0,'5'),colorblue;
DRAWTEXT(barslast(w6=0)=1,0,'6'),Color00FF00;
DRAWTEXT(barslast(w7=0)=1,0,'7'),ColorFF00FF;
DRAWTEXT(barslast(w*100=0)=1,0,'8'),Colorred;