Graham,

I'm trying to get my head around that code right now... but first
thing I noticed was that my post was poorly worded. Let me reword it
below, and maybe you can tell me if this is what you thought I meant....

Ok. It's easy to find the first occurrence of a true value of an
array... that is looking from now backwards x intervals. simply
HHV(array,x) where x=no of intervals back.

However, how can I find the last true value of the array looking back
over x intervals...?? i.e. the first true value starting from x and
looking forward to now.

is there an array method without looping...?

Many Thanks


--- In [email protected], Graham <kavemanpe...@...> wrote:
>
> try this
> array = h;
> LastHHVValue = valuewhen( hhvbars(array,x)==0, array );
> 
> -- 
> Cheers
> Graham Kav
> AFL Writing Service
> http://www.aflwriting.com
> 
> 
> 
> 2009/1/13 sidhartha70 <sidharth...@...>:
> > Hi All,
> >
> > Ok. It's easy to find the last true value of an array... simply
> > HHV(array,x) where x=no of intervals back.
> >
> > However, how can I find the last true value of the array looking back
> > over x intervals...??
> >
> > is there an array method without looping...?
> >
> > Many Thanks
> >
> >
>


Reply via email to