array out of range error please offer assistance

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
Hi. Im building an EA that should ideally work on multiple charts simultaneously. When the EA is loaded onto a chart it first checks to see if an order has been opened already by looping through the order pool, obtaining the OrderSymbol and putting it into an array. Then i loop though that array and compare those symbols to ChartSymbol. If it finds a match it proceeds to set the trade. Everything works fine when I upload the EA to one chart. But once i upload it to the second chart it returns an "Array out of range" ERROR. The error is directing me back to the loop where create the array that holds the symbols currently with an open/pending order.
PLEASE HELP