something is incorrect either on myunderstanding of selectedvalue or
it does not behave correctly. basically if the cursor is not within
the visible range, it seems to return the last barindex of the
visible bars.
i have a work around here which only works on a intraday chart.
basically you ca
i am not using the entire code but only pieces of it. my point is that
the afl function does not do what it states. not sure why selectedValue
(barindex()) does not return the barindex at the selected cursor.
i will try to contact ab support
> BI = BarIndex();
> SBI = SelectedValue( BI );
i actually noticed it after i posted the message. however i find a odd
behaviour.
for eg.
i have a daily chart where my cursor is 8/10/2008
i now change tab to my 15 minute chart where if i scroll i will find
that the cursor is active at the first bar on 8/10/2008
however in zoom functions
BI