diff --git a/freqtrade/strategy/interface.py b/freqtrade/strategy/interface.py index 88029f4d4..08a5cf1cd 100644 --- a/freqtrade/strategy/interface.py +++ b/freqtrade/strategy/interface.py @@ -278,9 +278,9 @@ class IStrategy(ABC): else self.stoploss, initial=True) # evaluate if the stoploss was hit if stoploss is not on exchange - if self.stoploss is not None and \ - trade.stop_loss >= current_rate and \ - not self.order_types.get('stoploss_on_exchange'): + if ((self.stoploss is not None) and + (trade.stop_loss >= current_rate) and + (not self.order_types.get('stoploss_on_exchange'))): selltype = SellType.STOP_LOSS # If Trailing stop (and max-rate did move above open rate) if trailing_stop and trade.open_rate != trade.max_rate: