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

Re: [amibroker] Looking ahead



PureBytes Links

Trading Reference Links

sorry made a mess of that, -10 instead of 10 for the ref

LookHigh = ref( hhv( h, 10 ), 10 );

LookHigh = ref( hhv( h, 10 ), 10 ) * ( barindex() < barcount-11 );

--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_write.htm


On 11/29/05, Graham <kavemanperth@xxxxxxxxx> wrote:
> I find the best to use is
> LookHigh = ref( hhv( h, 10 ), -10 );
> this looks at the 10th bar into the future, for the HHV of 10 bars
> after today ( today is not included in the HHV)
>
> If you want to make certain that you exclude the end of the chart add
> a condition
> LookHigh = ref( hhv( h, 10 ), -10 ) * ( barindex() < barcount-11 );
>
> --
> Cheers
> Graham
> AB-Write >< Professional AFL Writing Service
> Yes, I write AFL code to your requirements
> http://e-wire.net.au/~eb_kavan/ab_write.htm
>
> On 11/29/05, dimension@xxxxxxxxxxxxx <dimension@xxxxxxxxxxxxx> wrote:
> >
> >
> >
> > Hi,
> >
> > Given a "trigger date/bar", how can I look ahead two weeks from that bar/date and determine what the low was within those two weeks, providing there exists data in that look ahead time frame?  Is there something like LLV and HHV for looking ahead? (I tried using a negative number to no avail).
> >
> >
> >
> > thanks
> >
>


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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/

<*> 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/