Is there a way to determine whether the process of toggling history visibility in GUI is complete and OrdersHistoryTotal() returns the value equal to what is visible in GUI? I need to do some calculations on the whole history at the beginning. Since I don't know what range of history is visible at the moment, I switch to All History via WinAPI, but it takes some time for this process to finalise and it happens asynchronously. I can delay the calculation for an arbitrary number of ms, but I'm looking for a more robust and elegant solution.
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.
Is there a way to determine whether the process of toggling history visibility in GUI is complete and OrdersHistoryTotal() returns the value equal to what is visible in GUI? I need to do some calculations on the whole history at the beginning. Since I don't know what range of history is visible at the moment, I switch to All History via WinAPI, but it takes some time for this process to finalise and it happens asynchronously. I can delay the calculation for an arbitrary number of ms, but I'm looking for a more robust and elegant solution.