How to exit long position based on short position SL

Hi, hope all of you are doing well.

I have a long and short position. I have placed a stop loss for the short position. I would like the long position to also exit when the short position hits the short position’s stop loss.

Would be of great help if someone can tell me on how to solve this.
Thank you

An easy shortcut is using the exit condition of the short position in universal exit. It will square off both long and short sides

If you do not want to take an universal exit, you will need to use repair in your long side set (assuming you are using sets).

Disclaimer: Not an investment advice