diff --git a/freqtrade/analyze.py b/freqtrade/analyze.py index 6334fd846..0a560c86e 100644 --- a/freqtrade/analyze.py +++ b/freqtrade/analyze.py @@ -195,7 +195,8 @@ class Analyze(object): :return True if bot should sell at current rate """ current_profit = trade.calc_profit_percent(current_rate) - if self.strategy.stoploss is not None and current_profit < self.strategy.stoploss: # type: ignore + if self.strategy.stoploss is not None \ + and current_profit < self.strategy.stoploss: # type: ignore logger.debug('Stop loss hit.') return True diff --git a/freqtrade/strategy/resolver.py b/freqtrade/strategy/resolver.py index 28465210c..60427bcf4 100644 --- a/freqtrade/strategy/resolver.py +++ b/freqtrade/strategy/resolver.py @@ -33,7 +33,8 @@ class StrategyResolver(object): # Verify the strategy is in the configuration, otherwise fallback to the default strategy strategy_name = config.get('strategy') or constants.DEFAULT_STRATEGY - self.strategy: IStrategy = self._load_strategy(strategy_name, extra_dir=config.get('strategy_path')) + self.strategy: IStrategy = self._load_strategy(strategy_name, + extra_dir=config.get('strategy_path')) # Set attributes # Check if we need to override configuration