PureBytes Links
Trading Reference Links
|
You're asking for the number of bars since C > Ref(C,-4). The two
being equal is no different to C < Ref(C,-4): it will not fulfil the
condition. If you want equal to also give zero, then use '>=' rather
than just '>'.
Regards,
GP
--- In amibroker@xxxxxxxxxxxxxxx, "ricko8294_98" <ricko@xxx> wrote:
>
> In my code I have an expression
>
> count = BarsSince(C > Ref(C ,-4));
>
> It seems to work properly except for tje unique situation when C is
> equal to Ref(C,-4).
>
> I expect when the two are equal, that count will reset to zero - but it
> does not.
>
> Is my understanding wrong?
>
> R
>
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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
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/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|