I want to sell both CE and PE options at the same time

I want to sell both CE and PE options at the same time when their respective delta reaches 0.25. However, sometimes one strike (either CE or PE) gets executed while the other does not. As a result, the trade does not enter completely.

I need a solution where either both CE and PE trades are executed together, or neither is executed. Alternatively, if one of them gets executed first, the other should enter as soon as its condition is met. However, in my current setup, once one trade is executed (either CE or PE), the other does not enter at all.

How can I ensure that both trades are executed together or sequentially when their conditions are met?