Update dry-run behaviour

This commit is contained in:
Matthias
2022-02-25 19:10:16 +01:00
parent 0749199097
commit 6caa5f7131
5 changed files with 16 additions and 12 deletions

View File

@@ -1170,8 +1170,8 @@ class FreqtradeBot(LoggingMixin):
# if stoploss is on exchange and we are on dry_run mode,
# we consider the sell price stop price
if self.config['dry_run'] and sell_type == 'stoploss' \
and self.strategy.order_types['stoploss_on_exchange']:
if (self.config['dry_run'] and sell_type == 'stoploss'
and self.strategy.order_types['stoploss_on_exchange']):
limit = trade.stop_loss
# set custom_exit_price if available