ah, thanks, that appears to work beautifully. Looking at your code I think I assumed (and didn't notice the results = ARRAY in the AFL reference) that Lowest returns a value (ie the lowest) rather than an array, although that makes no sense to me, unless it's an array of 1 value or an array full of the same lowest value??. Same applies to Valuewhen I guess. ah now I see what's happened there too (after about 5 minutes studying that line), it's an expression (boolean) in there to satisfy a true condition that is required not just an array. You have enlarged my mind. Many thanks.
I can finish up now, but I'll have to hit you on another question but I'll post that separately (but I have a feeling since you answered it in general earlier you may be one of the few that can answer it). cheers. --- In [email protected], Graham <[EMAIL PROTECTED]> wrote: > try this to find the lowest close for entire history > > Lowest_Close = lastvalue( Lowest(Close) ); > L_date =lastvalue( ValueWhen( Lowestbars(Close)==0, DateTime(), 1) ); > Lowest_date = NumToStr( L_date, formatDateTime); > Title = Name() + ": Total bars " + BarCount + " Low = " + Lowest_Close > + " on " + Lowest_date; > > Cheers > Graham Kav <snip>
