https://fxdreema.com/shared/vdsS1O2Ec
Something like this, but not this. The problem here is that new pending orders are created every day, and at that time there can be an old trade still running. Then, because I used "No trade/order exists", a new pending order is created when everything is closed (no orders, no trades) and at these moments the last closed trade is... who knows how old is it. Some trades will be missed.
https://fxdreema.com/shared/0FhOX0hN
This is similar, but not the same. Note that "once per trade" have memory that is cleared when the EA is reloaded.
At least you can get some idea 🙂