diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index 299954e49..6981dc6df 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -638,11 +638,10 @@ class FreqtradeBot(object): def check_sell(self, trade: Trade, sell_rate: float, buy: bool, sell: bool) -> bool: if (self.config['edge']['enabled']): stoploss = self.edge.stoploss(trade.pair) - should_sell = \ - self.strategy.should_sell(trade, sell_rate, datetime.utcnow(), buy, sell, stoploss) + should_sell = self.strategy.should_sell( + trade, sell_rate, datetime.utcnow(), buy, sell, stoploss) else: - should_sell = \ - self.strategy.should_sell(trade, sell_rate, datetime.utcnow(), buy, sell) + should_sell = self.strategy.should_sell(trade, sell_rate, datetime.utcnow(), buy, sell) if should_sell.sell_flag: self.execute_sell(trade, sell_rate, should_sell.sell_type) diff --git a/freqtrade/strategy/interface.py b/freqtrade/strategy/interface.py index 73bf2313d..bd42f6c7e 100644 --- a/freqtrade/strategy/interface.py +++ b/freqtrade/strategy/interface.py @@ -210,9 +210,12 @@ class IStrategy(ABC): :return: True if trade should be sold, False otherwise """ current_profit = trade.calc_profit_percent(rate) - stoplossflag = \ - self.stop_loss_reached(current_rate=rate, trade=trade, current_time=date, - current_profit=current_profit, force_stoploss=force_stoploss) + stoplossflag = self.stop_loss_reached( + current_rate=rate, + trade=trade, + current_time=date, + current_profit=current_profit, + force_stoploss=force_stoploss) if stoplossflag.sell_flag: return stoplossflag