Hello!, I’m running futures trading bot locally. Is there a way to place stop-loss order automatically as soon as the bot opens a position? My main concern is ensuring the stop-loss stays on the OKX exchange side in case my PC shuts down unexpectedly or my internet connection goes down, so I can avoid a large loss.
If you are using a stop loss by percentage (not indicators) and the SL is within the exchange allowed values (they may have a limit for how far you can place it) then it will be placed alongside with the order as soon as the deal is opened. You can always check on the exchange side that the limit order is there.