Let's say there are many loops of orders, each loop follows previous loop. In every loop, there are a series of orders and a whole loop means the series of orders are all closed based on a condition.
In order to recover the tracking once EA/terminal/PC is restarted while a loop is still ongoing, need select every order in this loop correctly. However, some orders are still open and some are closed already.
Once EA is restarted, only total orders in the ongoing loop can be retrieved, that is "ArrOrderSize" in the codes below. However, how to select the orders correctly now that some are still open and some are closed?
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.
Let's say there are many loops of orders, each loop follows previous loop. In every loop, there are a series of orders and a whole loop means the series of orders are all closed based on a condition.
In order to recover the tracking once EA/terminal/PC is restarted while a loop is still ongoing, need select every order in this loop correctly. However, some orders are still open and some are closed already.
Once EA is restarted, only total orders in the ongoing loop can be retrieved, that is "ArrOrderSize" in the codes below. However, how to select the orders correctly now that some are still open and some are closed?