From 0b8afa12e9955d4d7bcd495749ea5b6c88bdc596 Mon Sep 17 00:00:00 2001 From: Janne Sinivirta Date: Tue, 14 Nov 2017 20:33:00 +0200 Subject: [PATCH] exit strategy after roi check --- freqtrade/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/main.py b/freqtrade/main.py index 3fb0dd64d..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()): + if should_sell(trade, current_rate, datetime.utcnow()) or get_signal(trade.pair, SignalType.SELL): execute_sell(trade, current_rate) return True return False