![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
I've noticed an issue with OrderSelect and OrderHistory
Did some tests, and sometimes when I'm writing the data to a file, changing account and writing again, it still writes the data from the previous account.
I guess it's due to MetaTrader's limitations - as I understand it, the history is saved in the memory, so it might take it some time before it's replaced with the new account?
Please correct me if I'm wrong. And how do I overcome this flaw?