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

[amibroker] general purpose array problem



PureBytes Links

Trading Reference Links

I want to fill an array with Fibonacci numbers, like this:

fibs[0] = 3;
fibs[1] = 5;
fibs[2] = 8;
fibs[3] = 13;
fibs[4] = 21;
fibs[5] = 34;
fibs[6] = 55;
fibs[7] = 89;
fibs[8] = 144;

the second line gives a subscript out of range error backtesting when it
hits AOL, which currently has no data. this happens only with the new
backtester not the old one.

I'd guess that that's because all arrays are sized according to the number
of bars of data for the current stock, even if the array is completely
artificial and has nothing to do with the stock itself or its data.

is there a way around this?

thanks,

dave


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