Update tests to test DCA for shorts

This commit is contained in:
Matthias
2022-02-13 16:01:44 +01:00
parent eed516a5c6
commit f0f5a50975
4 changed files with 80 additions and 5 deletions

View File

@@ -533,7 +533,7 @@ class FreqtradeBot(LoggingMixin):
if stake_amount is not None and stake_amount > 0.0:
# We should increase our position
self.execute_entry(trade.pair, stake_amount, trade=trade)
self.execute_entry(trade.pair, stake_amount, trade=trade, is_short=trade.is_short)
if stake_amount is not None and stake_amount < 0.0:
# We should decrease our position