From 1a27258469cf9fd756203dacca721886ca5297b9 Mon Sep 17 00:00:00 2001 From: misagh Date: Tue, 8 Jan 2019 16:34:23 +0100 Subject: [PATCH] condition fixed --- freqtrade/freqtradebot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index 513b27755..a081d364a 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -656,7 +656,7 @@ class FreqtradeBot(object): # This is a guard: there is a situation where market is going doing down fast # the stoploss on exchange checked previously is not hit but # it is too late and too risky to cancel the previous stoploss - if trade.stop_loss < self.exchange.get_ticker(trade.pair)['bid']: + if trade.stop_loss <= self.exchange.get_ticker(trade.pair)['bid']: logger.info('stoploss on exchange update: too risky to update stoploss as ' 'current best bid price (%s) is higher than stoploss value (%s)', self.exchange.get_ticker(trade.pair)['bid'], trade.stop_loss)