I have backtest with your set file (EU M5)
Initially buy1 and sell1 are placed. (Hedge)
Then buy order martin is placed, 1,2,3,4 then close together.
After that initial hedge sell order is closed alone. (because there is only one sell order)
I don't see any problem for me.
By the way, if you want to close order with profit dollar $2, you need to select from Unused to Manual input.
View attachment 86160
Also you put martin tp=5pips
View attachment 86159
So martin order is closed with 5pips tp.
View attachment 86157