Allow custom_stoploss to cooperate with stoploss on exchange

This commit is contained in:
Matthias
2021-01-30 20:11:18 +01:00
parent 30e5c01cb1
commit 16dad8b6d4
6 changed files with 109 additions and 1 deletions

View File

@@ -998,7 +998,8 @@ class FreqtradeBot(LoggingMixin):
logger.warning('Stoploss order was cancelled, but unable to recreate one.')
# Finally we check if stoploss on exchange should be moved up because of trailing.
if stoploss_order and self.config.get('trailing_stop', False):
if stoploss_order and (self.config.get('trailing_stop', False)
or self.config.get('use_custom_stoploss', False)):
# if trailing stoploss is enabled we check if stoploss value has changed
# in which case we cancel stoploss order and put another one with new
# value immediately