condition fixed

This commit is contained in:
misagh 2019-01-08 16:34:23 +01:00
parent 9e133eb32e
commit 1a27258469

View File

@ -656,7 +656,7 @@ class FreqtradeBot(object):
# This is a guard: there is a situation where market is going doing down fast # 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 # the stoploss on exchange checked previously is not hit but
# it is too late and too risky to cancel the previous stoploss # 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 ' logger.info('stoploss on exchange update: too risky to update stoploss as '
'current best bid price (%s) is higher than stoploss value (%s)', 'current best bid price (%s) is higher than stoploss value (%s)',
self.exchange.get_ticker(trade.pair)['bid'], trade.stop_loss) self.exchange.get_ticker(trade.pair)['bid'], trade.stop_loss)