From 62d83b8dbde696049a777c78e995e2e657cdb5c5 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 14 Aug 2023 15:57:47 +0200 Subject: [PATCH] Use is_stop_trailing for actual trailing detection --- freqtrade/strategy/interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/strategy/interface.py b/freqtrade/strategy/interface.py index feb561743..19092b0f4 100644 --- a/freqtrade/strategy/interface.py +++ b/freqtrade/strategy/interface.py @@ -1247,7 +1247,7 @@ class IStrategy(ABC, HyperStrategyMixin): exit_type = ExitType.STOP_LOSS # If initial stoploss is not the same as current one then it is trailing. - if trade.initial_stop_loss != trade.stop_loss: + if trade.is_stop_loss_trailing: exit_type = ExitType.TRAILING_STOP_LOSS logger.debug( f"{trade.pair} - HIT STOP: current price at "