I'm trying to plot the (close / first visible bar) of the selected ticker so 
that it begins from the left side of the chart at 1.0 and if it were to advance 
2%, it would show 1.02 on the right side of the chart.  I am pretty close, but 
I'm getting some confusing behavior that I think has to do with QuickAFL.  Can 
someone cut and paste this code and tell me what is happening, please?


function GetVisibleBarCount2() 

{ 

lvb2 = Status("lastvisiblebar"); 

fvb2 = Status("firstvisiblebar"); 

return Min( Lvb2 - fvb2, BarCount - fvb2 ); 

} 

barcnt2=getvisiblebarcount2();

Plot(barcnt2,"barcnt2",colorViolet,styleOwnScale);

Lkb2k=barcnt2;

normalizedC= C/ ValueWhen(BarIndex()==Lkb2k,C);

Plot(normalizedC,"normalizedC",colorBlue,styleOwnScale);

?/*I've tried this with and without SetBarsRequired*/

SetBarsRequired(sbrAll, sbrAll );

Reply via email to