How can I exit CALL and PUT once if SL or Target Price is triggered

I tried to implement Short Straddle with SL 30% and Target 40%.
The problem I am facing is, if the CE hits the target, PE position still active the account.

Is there any variable to check the cumulative profit to add in Exit conditions.

i think your query is related to the other version of platform for which you can contact there team on [email protected]