From 4b2d09925879be11c17137ebfdd230967bdddc22 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 2 Dec 2025 06:14:48 +0100 Subject: [PATCH] fix: ensure stoploss on exchange is canceled once the trade closes. --- freqtrade/freqtradebot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index 89abb0915..09afd8528 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -2387,6 +2387,8 @@ class FreqtradeBot(LoggingMixin): self.strategy.ft_stoploss_adjust( current_rate, trade, datetime.now(UTC), profit, 0, after_fill=True ) + if not trade.is_open: + self.cancel_stoploss_on_exchange(trade) # Updating wallets when order is closed self.wallets.update() return trade