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

Re: [amibroker] HHV (?) Question



PureBytes Links

Trading Reference Links

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@xxxxxxxxx> 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/


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/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/