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 [email protected], "ricko8294_98" <[EMAIL PROTECTED]> 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
>


Reply via email to