Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 67

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
When testing an Expert Advisor in the journal an error pops up
2013.08.07 12:35:41 2012.06.06 05:29 Puria - 1.452 - SQ EURUSD,M30: Error 4002 (array index - out of range)
2013.08.07 12:35:41 2012.06.06 05:29 Puria - 1.452 - SQ EURUSD,M30: Attempting to open a Buy order. Waiting for an answer.
Accordingly, the orders are not opened. How to eliminate the error? What are the reasons?
I would be glad to help.
Without code, I can only suggest that the index pointing to a cell in the array is pointing outside the array. If an array has size 10 and the index has size 10, the index points to the array's non-existent 11th cell, because array indexing starts with zero. For this example: an array of size 10 is indexed from 0 to 9 - a total of 10.
Not much will be clear from the terminal messages alone, not much will help you if you don't post the EA code. Somewhere in your array you are writing a non-existent batch of data, as one of the assumptions, but guessing is not my profile.
I got this advisor from a friend. It works without any errors, I saw it in person on Skype. I got error 4002. What else could it be?
You can.
Thank you! Maybe seen in the public domain?
Here
I got this advisor from a friend. It works without any errors, I saw it in person on Skype. I got error 4002. What else could it be?
Can you please tell me how correct such an entry is?
It will not turn out that when I have, for example, 3 horizontal objects, and a total of 10 objects, and these horizontal objects scattered among the 10, then the search 3 top will be analyzed, but the next 7, which will be all (or part) of the horizontal lines, it will not come? Or will it automatically sort by horizontal lines?
And, if the latter is true, is it possible to make such an entry:
Can you please tell me if such an entry is correct:
Couldit be that when I have, for example, 3 horizontal objects, and a total of 10 objects, and these horizontal objects scattered among the 10, then the search 3 top will be analyzed, but the next 7, which will be all (or part) of the horizontal lines, it will not come? Or will it automatically sort by horizontal lines?
And, if the latter is true, is it possible to make such an entry:
1. It won't work. It will sort by horizontal.
2. Should it?
1. It won't work. It will sort by horizontal.
2. Should it?
2. I have to. I need to view 2 types of objects: horizontal lines and trend lines. The rest of the objects are not relevant in this search.
Sort by first and not by horizontal....