MT5 EA Slow When Many History Orders
-
I have noticed that the speed when loading EA on MT5 is taking a long time to load, around 30 seconds to complete, On this pair that has 5000+ history orders.
Compared to the other pair with no or less history orders, it load within a second.
(*This EA did not use any blocks 'Bucket of Closed Positions' or 'For Each Closed Position')I have tried with many EAs from MA Cross Logic to a Simple Show current time Message.
All took times to load complete of the pair that only have many history orders.https://fxdreema.com/shared/ohDReZ7Id
(put the EA to Chart)

(took 30 seconds to show message)

(orders history on the pair that cause slow loading EA)

-
Is this the whole project or just part of it? I see no reason here for that to happen.
-
It happen to all projects when load to this pair XAUUSD (has many history positions), including a simple project from the shared link. But on EURUSD (has a few history orders), it works fine.
You can try loading EA on this Demo account:
MT5
7818746
Demo2024!
Eightcap-Demo -
I found the problem, the "Trade History" menu on MT5 is causing slow loading.
Turn it off will Solve the slow problem.

-
@arm150 Thank you very much for sharing.