From 47cbf4dd1bc85e00119c006d25217b79b8f1e931 Mon Sep 17 00:00:00 2001 From: zx Date: Tue, 10 Aug 2021 03:02:54 +0300 Subject: [PATCH] Updating condition to use sell_profit_offset without setting sell_profit_only to True --- 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 7150c5a31..d7cbb9c59 100644 --- a/freqtrade/strategy/interface.py +++ b/freqtrade/strategy/interface.py @@ -590,7 +590,7 @@ class IStrategy(ABC, HyperStrategyMixin): current_profit = trade.calc_profit_ratio(current_rate) if ((self.sell_profit_only and current_profit <= self.sell_profit_offset) - or (current_profit >= 0 and current_profit <= self.sell_profit_offset)): + or (current_profit >= 0 and current_profit <= self.sell_profit_offset)): # sell_profit_only and profit doesn't reach the offset - ignore sell signal pass elif self.use_sell_signal and not buy: