18 May 2022, 10:11

Because of trading grids, I place hundreds of orders. To avoid fee and limited number of orders, I have to consider to use MT5 with netting mode.

What I tried is use formula block (Balance + profit), put in a Variable (when no trade).
Set EA close all orders when Equity > Variable.
https://fxdreema.com/shared/AqAfTIjNc

It works. However, when my laptop closed Metatrader, EA restarted. It caused a mess.

Because of netting mode, balance is changing. So I can only set profit target before EA trades.

Any ideas to set target profit with MT5 netting mode, works even EA restarts ?