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

@@ -183,7 +183,7 @@ class StrategyTestV3(IStrategy):
current_profit: float, min_stake: float, max_stake: float, **kwargs):
if current_profit < -0.0075:
orders = trade.select_filled_orders('buy')
orders = trade.select_filled_orders(trade.enter_side)
return round(orders[0].cost, 0)
return None