From 3c8d27d0985430254d8d7371e790a56f3ddef8bc Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 13 Oct 2019 09:54:03 +0200 Subject: [PATCH] remove correct comment ... --- 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 e4cfe0088..014ca9968 100644 --- a/freqtrade/strategy/interface.py +++ b/freqtrade/strategy/interface.py @@ -361,8 +361,8 @@ class IStrategy(ABC): # Don't update stoploss if trailing_only_offset_is_reached is true. if not (self.trailing_only_offset_is_reached and high_profit < sl_offset): + # Specific handling for trailing_stop_positive if self.trailing_stop_positive is not None and high_profit > sl_offset: - # Ignore mypy error check in configuration that this is a float stop_loss_value = self.trailing_stop_positive logger.debug(f"{trade.pair} - Using positive stoploss: {stop_loss_value} " f"offset: {sl_offset:.4g} profit: {current_profit:.4f}%")