From 5ea332e9be97fb30b2fe898124a1cd9625fc6f26 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 13 Jan 2019 14:13:41 +0100 Subject: [PATCH] fix bug with trailing_stop_offset if it's disabled --- 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 08a5cf1cd..512736558 100644 --- a/freqtrade/strategy/interface.py +++ b/freqtrade/strategy/interface.py @@ -302,7 +302,7 @@ class IStrategy(ABC): # and if profit is positive stop_loss_value = force_stoploss if force_stoploss else self.stoploss - sl_offset = self.config.get('trailing_stop_positive_offset', 0.0) + sl_offset = self.config.get('trailing_stop_positive_offset') or 0.0 if 'trailing_stop_positive' in self.config and current_profit > sl_offset: