[amibroker] Finding the last true value in an array...

2009-01-12 Thread sidhartha70
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

Re: [amibroker] Finding the last true value in an array...

2009-01-12 Thread Graham
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...@yahoo.com: Hi All, Ok. It's easy to find the last true value of an array... simply HHV(array,x) where x=no of