From 33bd433c2299cd98a9c7dead01a47c317e555d4b Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 23 Dec 2023 10:31:03 +0100 Subject: [PATCH] Don't run against all orders, only consider open sl orders. --- freqtrade/freqtradebot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index 40cd6cecd..fec2ed6a4 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -1219,7 +1219,7 @@ class FreqtradeBot(LoggingMixin): logger.debug('Handling stoploss on exchange %s ...', trade) stoploss_orders = [] - for slo in trade.sl_orders: + for slo in trade.open_sl_orders: stoploss_order = None try: # First we check if there is already a stoploss on exchange