Try something like the following. Note that when counting the number of bars
back, blank bars on the right edge of your chart are included in the count.
Reference = BarIndex() == Status("lastvisiblebarindex") - 50;
Plot(Reference, "", colorRed, styleHistogram | styleOwnScale | styleNoLabel);
Plot(Close, "Close", colorDarkGrey, styleBar);
Mike
--- In [email protected], "binjobingo" <binjobi...@...> wrote:
>
> I want to plot a vertical line say 50 days back.
> Because If I use a 50 day Ema or Sma I want to see at a glance if lower
> values are to be dropped or upper values will be dropped 50 days back.
> will appreciate any help regarding the AFL
>