PureBytes Links
Trading Reference Links
|
Dave,
I'm not sure how to answer this because it depends on which array you are refering too.
Are you refering to a stock data array of some description? If so you could use the Barcount constant which will return the number of bars in the array. Remember it's zero based so the last bar is refered to as: Barcount - 1
Regards,
William Peters
www.amitools.com
-----Original Message-----
From: Dave Merrill [mailto:dmerrill@xxxxxxx]
Sent: October 24, 2003 2:47 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] size of an array in AFL?
sorry for the dumb question, but what's the syntax for getting the size
(number of elements) in an array? I want to do something like this, only
that works:
for(i=1; i<=array.length; i++) {
thanks,
dave
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
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
------------------------ 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
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|