Steve/Jerry,

>>"maybe you...need correct values for entire array"
In that case, how about:

BarsPassed = BarIndex() - Valuewhen( YourCondition, BarIndex(),n )   ??

Andy



Steve Dugas wrote:
> Thanks!  ...trying to get my name in the Credits...   8 - )
>
> BTW, it occurs to me that instead of looking for current values, maybe
> you
> are using this in a backtest or something where you need correct
> values for
> entire array. If that is the case, I think we will need to come up with
> something different...
>
> Steve
>
> ----- Original Message -----
> From: "idaytrader" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Wednesday, May 10, 2006 6:35 PM
> Subject: [amibroker] Re: How do you get the bars since the nth
> occurance of
> a condition
>
>
> > That was bloody brilliant (no offense intended)!!!!
> >
> > Thank you.  That solution just opened up a new level of understanding
> > in AB for me.  Thanks.
> >
> > Jerry L.
> >
> > --- In [email protected], "Steve Dugas" <[EMAIL PROTECTED]> wrote:
> >>
> >> Not tested, and assuming you meant Nth *most recent* occurance?
> >>
> >> TimeLine = LastValue( BarIndex() ) - BarIndex();
> >> BarsPassed = ValueWhen(  YourCond, TimeLine, n );
> >>
> >> Steve
> >>
> >> ----- Original Message -----
> >> From: "idaytrader" <[EMAIL PROTECTED]>
> >> To: <[email protected]>
> >> Sent: Wednesday, May 10, 2006 11:07 AM
> >> Subject: [amibroker] How do you get the bars since the nth occurance
> > of a
> >> condition
> >>
> >>
> >> > Hi all,
> >> >
> >> > I am drawing a blank.  How can I get the number of bars that have
> >> > passed since the nth occurance of a condition?  Thanks for your help.
> >> >
> >> > Jerry L.
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> > 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
> >
> >
> >
> >
> >
> >
> >
>
>
>
>
> 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
>
>
>
>
>
> SPONSORED LINKS
> Investment management software
> <http://groups.yahoo.com/gads?t=ms&k=Investment+management+software&w1=Investment+management+software&w2=Real+estate+investment+software&w3=Investment+property+software&w4=Software+support&w5=Real+estate+investment+analysis+software&w6=Investment+software&c=6&s=200&.sig=_XXUzbE9l5lGlZNcMu4KNQ>
>       Real estate investment software
> <http://groups.yahoo.com/gads?t=ms&k=Real+estate+investment+software&w1=Investment+management+software&w2=Real+estate+investment+software&w3=Investment+property+software&w4=Software+support&w5=Real+estate+investment+analysis+software&w6=Investment+software&c=6&s=200&.sig=5_sgDczz3ArKGMtJ9tFSJA>
>       Investment property software
> <http://groups.yahoo.com/gads?t=ms&k=Investment+property+software&w1=Investment+management+software&w2=Real+estate+investment+software&w3=Investment+property+software&w4=Software+support&w5=Real+estate+investment+analysis+software&w6=Investment+software&c=6&s=200&.sig=_N6zcwefgp4eg5n6oX5WZw>
>
> Software support
> <http://groups.yahoo.com/gads?t=ms&k=Software+support&w1=Investment+management+software&w2=Real+estate+investment+software&w3=Investment+property+software&w4=Software+support&w5=Real+estate+investment+analysis+software&w6=Investment+software&c=6&s=200&.sig=MJ2jP31F3n64RDZkDadU8w>
>       Real estate investment analysis software
> <http://groups.yahoo.com/gads?t=ms&k=Real+estate+investment+analysis+software&w1=Investment+management+software&w2=Real+estate+investment+software&w3=Investment+property+software&w4=Software+support&w5=Real+estate+investment+analysis+software&w6=Investment+software&c=6&s=200&.sig=GmF8PlAJASx0wrSaX5-Zlw>
>       Investment software
> <http://groups.yahoo.com/gads?t=ms&k=Investment+software&w1=Investment+management+software&w2=Real+estate+investment+software&w3=Investment+property+software&w4=Software+support&w5=Real+estate+investment+analysis+software&w6=Investment+software&c=6&s=200&.sig=aMgGsKT4w29dMAYUzQUKzg>
>
>
>
> ------------------------------------------------------------------------
> YAHOO! GROUPS LINKS
>
>     *  Visit your group "amibroker
>       <http://groups.yahoo.com/group/amibroker>" on the web.
>       
>     *  To unsubscribe from this group, send an email to:
>        [EMAIL PROTECTED]
>       <mailto:[EMAIL PROTECTED]>
>       
>     *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>       Service <http://docs.yahoo.com/info/terms/>.
>
>
> ------------------------------------------------------------------------
>

           
___________________________________________________________
24 FIFA World Cup tickets to be won with Yahoo! Mail http://uk.mail.yahoo.com


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





SPONSORED LINKS
Investment management software Real estate investment software Investment property software
Software support Real estate investment analysis software Investment software


YAHOO! GROUPS LINKS




Reply via email to