Re: [amibroker] Re: error 10. subscript out of range

 

Hello,

"I am pretty sure my indexes are not out of range"

If program says it is out of range you can be 100% sure that it really *is* out of range.

As always everything is covered by documentation:
http://www.amibroker.com/kb/2014/09/22/do-not-make-assumptions-on-number-of-bars/


Best regards,
Tomasz Janeczko
amibroker.com

On 2016-04-25 08:14, 'B. Pitatzidis' bobptz@gmail.com [amibroker] wrote:
Hello

I am having "Error 10" (subscript out of range), but I am pretty sure my indexes are not out of range.  The problems occurs only in the editor, when I click the Apply button.  The script runs without any problems and produces correct results when I run it normally. 

Here is a typical error message I get:
Error 10. Array subscript out of range. You must not access array elements outside 0..(BarCount-1) range. You attempted to access non-existing 11454-th element of array.

However the BARCOUNT is 11491 (bigger than 11457). 

I checked this guide and it is definetely not my case:
http://www.amibroker.com/guide/errors/10.html

I assume it is some setting in the editor or cache that I need to set?  I searched all of them and increased them to over 20.000.
 



__._,_.___

Posted by: Tomasz Janeczko <groups@amibroker.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (3)

Upgrade your account with the latest Yahoo Mail app
Get organized with the fast and easy-to-use Yahoo Mail app. Upgrade today!

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/


.

__,_._,___


EmoticonEmoticon