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

[amibroker] BuyPrice problem



PureBytes Links

Trading Reference Links

Try this
Ref(HHV(C,10),-4)

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

-----Original Message-----
From: Brian [mailto:brian@xxxxxxxxxxxxxxxx] 
Sent: Wednesday, May 05, 2004 7:08 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] AFL example code request

I am looking for an example of how to do the following in AFL: 

Return the value of the highest close within a specific set of 
periods. For example, Ref(C,-4) through Ref(C,-13).

In other words, all closes between Ref(C,-4) through Ref(C,-13) are 
compared and the value of the highest close is returned to a 
variable.

hhv(array,periods) doesn't work because it always includes today's 
data (according to the documentation).

Thanks in advance!

Brian




Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links



 



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com.  Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
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/