Fred, my post did not refer to your code; your code is fine and does
what it is supposed to do. I just outlined some problems one may
encounter when working with First/LastVisibleBar.
The problems I eluded to have all happened to me at one time or another
and resulted in a waste of my time. I use RT however I assume the
problems can occur in EOD just the same. The problems can easily be
confirmed by right-justifying your chart, running my code,
adding/removing the SetBarsRequired() and/or changing the number of
Blank bars in Preferences. You will note that LastVisibleBar marker
appears and disappears depending on what one might have assumed to be
unrelated conditions.
best regards,
herman
Fred wrote:
> Herman,
>
> While I'd admit that the statement I posted really should take the
> LastValue i.e.
>
> HVC = LastValue(Highest(ValueWhen(BarIndex() >= Status
> ("FirstVisibleBar") AND BarIndex() <= Status("LastVisibleBar"), C)));
>
> I don't follow the rest of your post ... With or without bars in the
> right margin I seem to get the correct result when HVC is plotted ...
>
> Under what conditions do you not get the correct result ...
>
>
>
>
>
>
> Please note that this group is for discussion between users only.
>
> To get support from AmiBroker please send an e-mail directly to
> SUPPORT {at} amibroker.com
>
> For other support material please check also:
> http://www.amibroker.com/support.html
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/