Probably it is freezing because there are too many historical trades to iterate. Reduce the execution to a week for example and do not go too much far back in time.
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
Hello,
I am testing on an old account with thousands of closed orders on MT5, that is more than 4 years old.
When using functions like HistorySelectByPosition, the entire terminal freezes.
I use this function to track the profit of the closed trades when they close.
I have also profiled the EA, and 99% of the CPU usage comes from this function.
How to circumvent this problem?