@berg3699 You need to formulate the conditions you are expecting. For instance you can set a maximum of trades to beopened or a SL for all trades. It depends.
Could you please share your current project? Initially I would suggest you to catch both tp/sl on different variables and then use them on the following trades.