I think that you are doing this mistake that I described here:https://fxdreema.com/tutorial/builder/things-not-to-do#2
But because you say that you want to hedge, let me try to convince you to forget about hedging, because this doesn't help at all. Hedging in the same symbol is useless strategy that only makes things really complex and nothing else. The whole strategy turns into some crazy useless recursive loop. There is no magic in this. Real hedging is when you trade in multiple pairs, but not in the same symbol. Hedging in the same symbol is plain stupid.