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.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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