From c1ef3f526c2c0f68bc46b6eb2d489b2cd0614ce9 Mon Sep 17 00:00:00 2001 From: Janne Sinivirta Date: Thu, 16 Nov 2017 07:41:26 +0200 Subject: [PATCH] remove unnecessary comparison --- freqtrade/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/main.py b/freqtrade/main.py index fe25dd204..b2789ca9f 100755 --- a/freqtrade/main.py +++ b/freqtrade/main.py @@ -183,7 +183,7 @@ def handle_trade(trade: Trade) -> bool: logger.debug('Handling %s ...', trade) current_rate = exchange.get_ticker(trade.pair)['bid'] - if should_sell(trade, current_rate, datetime.utcnow()) or get_signal(trade.pair, SignalType.SELL) == 1: + if should_sell(trade, current_rate, datetime.utcnow()) or get_signal(trade.pair, SignalType.SELL): execute_sell(trade, current_rate) return True return False