Wrong Account History

 

I've noticed an issue with OrderSelect().


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?

 
i m new i dont know aboooooooout this