I found the problem, the "Trade History" menu on MT5 is causing slow loading.
Turn it off will Solve the slow problem. 

I found the problem, the "Trade History" menu on MT5 is causing slow loading.
Turn it off will Solve the slow problem. 

I have both buy & sell
ex buy 0.01 0.05, sell 0.03, 0.1
When price go down, I just want to trailing all buy/sell positions when total sum get profit not only winning side. When price reverse to the trailing stop, all positions close
@jstap How do I combine them into 1 position and trailing when profit by using foreach trade ?
Does Trailing Group of Trades work with Buy and Sell sum as one Position ? How to do that ?
I have multiple positions for buy sell with multiple lots size (not equal)
In the picture, if price go down I want to trailing sum profit in pips on all positions (like trail money on loss function buy I want it as pips)
I have tried Trailing stop (group of trades) block. But it do only trailing on profit side (trailing only sells when price go down) I want it to close both buy and sell positions when trailing reach. like sum of position.
How can I do that ?


I found the problem, the "Trade History" menu on MT5 is causing slow loading.
Turn it off will Solve the slow problem. 

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 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)
