Mql5 Strategy tester keeps on Opening Countertrade for my hedging EA

So I’m currently working on an Expert advisor that has to open a buy and sell trade at one point with different lot sizes. Now this trades gets opened successfully but shortly after a countertrade is automatically opened on my strategy tester. What could be the cause of this?

can barely understand, can provide more detail on the strategy?