mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
condition fixed
This commit is contained in:
parent
9e133eb32e
commit
1a27258469
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user