Read as ... The lowest low over the last 500 bars occured 0 bars ago
--- In [email protected], "laster" <[EMAIL PROTECTED]> wrote:
>
> Hi Graham. That worked. Thanks a lot. What does this part of the
expression
> mean: LLVbars( L,500 )==0. The 0 equality is what confuses me.
>
> Thanks again,
>
> Jerry
>
>
>
> _____
>
> From: [email protected] [mailto:[EMAIL PROTECTED]
On Behalf
> Of Graham
> Sent: Saturday, October 07, 2006 02:33
> To: [email protected]
> Subject: Re: [amibroker] Date of last Higher High/Lower Low
>
>
>
> try this, of course there are many other ways to skin this one
>
> dd = valuewhen( LLVbars( L,500 )==0, datenum() );
>
>
> --
> Cheers
> Graham
> AB-Write >< Professional AFL Writing Service
> Yes, I write AFL code to your requirements
> http://e-wire. <http://e-wire.net.au/~eb_kavan/ab_write.htm>
> net.au/~eb_kavan/ab_write.htm
>
>
>
> On 07/10/06, laster < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> net>
> wrote:
>
> Hi,
>
> I am trying to get the datenum or barindex of the last high and
last low.
>
> My attempts to this point are not fructiferous.
>
>
>
> L1 = L < Ref(LLV (L, 500),-1 );
>
> dd= ValueWhen ( L1,BarIndex () ) ;
>
>
>
> Will provide a date but within the 500 period, or any other period.
>
>
>
> What I really need is the date of bottom that followed the last
peak.
>
>
>
> Do you think that something like the following should work?
>
>
>
> DLP = ValueWhen(H> Ref(HHV(H, 500),-1) ,BarIndex()) ;
>
> L1 = L < Ref (LLV (L, DLP),- 1);
>
>
>
>
>
> Thanks in advance,
>
> Jerry
>
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
<*> 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:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/