[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: Help needed with simple Lowest or LLV afl code



PureBytes Links

Trading Reference Links

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 amibroker@xxxxxxxxxxxxxxx, Graham <kavemanperth@xxx> 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>


------------------------------------

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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/