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

Re: [amibroker] Re: HHV (?) Question



PureBytes Links

Trading Reference Links

Glad I could help.

Sorry I don't understand what you are trying to do with current bar?


On Sun, 27 Feb 2005 08:50:32 -0000, the_short_fox <theshortfox@xxxxxxxxx> wrote:
> 
> 
> Graham, that's brilliant. Thanks!
> BTW, is there any way to access the (current) Bar? I have a function
> I wrote that gets a Bar as a parameter and returns a value. It is of
> interest to call this function each bar during backtest, in order to
> allow it to "deliver" its value. Is there any way to send
> the "current" bar, or one must create an array with function values
> prior to actually backtesting?
> 
> Thanks.
> 
> Short.
> 
> 
> --- In amibroker@xxxxxxxxxxxxxxx, Graham <kavemanperth@xxxx> wrote:
> > Short, something like this may work
> >
> > Buy = H>ref(hhv(h,10),-1) and ref(hhv(h,10),-1)<ref(hhv(h,20),-1);
> >
> >
> >
> >
> > On Sat, 26 Feb 2005 23:18:15 -0000, the_short_fox
> <theshortfox@xxxx> wrote:
> > >
> > >
> > > Hi All,
> > >
> > > Suppose I'd like to code something like: Buy if,
> > >
> > > (1) Today's high is higher than the highest price of the last 10
> > > bars. and,
> > > (2) None of the last 10 bars represent (themselves) a 20 day
> high.
> > >
> > > I know how to code (1), but as I'm only studying the syntax of
> AFL,
> > > I experience difficulties with (2). Would someone please give a
> > > hand? Thank you in advance.
> > >
> > > Short.
> > >
> > >
> > > Check AmiBroker web page at:
> > > http://www.amibroker.com/
> > >
> > > Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> > > Yahoo! Groups Links
> > >
> > >
> > >
> > >
> > >
> >
> >
> > --
> > Cheers
> > Graham
> > http://e-wire.net.au/~eb_kavan/
> 
> 
> Check AmiBroker web page at:
> http://www.amibroker.com/
> 
> Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> Yahoo! Groups Links
> 
> 
> 
> 
> 


-- 
Cheers
Graham
http://e-wire.net.au/~eb_kavan/


------------------------ Yahoo! Groups Sponsor --------------------~--> 
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
http://us.click.yahoo.com/EpW3eD/3MnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.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/