Simplify and align adjust_trade_position interface

This commit is contained in:
Matthias
2022-05-26 20:38:09 +02:00
parent 192bc868a7
commit 7c464f3237
5 changed files with 57 additions and 29 deletions

View File

@@ -506,8 +506,7 @@ class Backtesting:
current_profit=current_profit, min_stake=min_stake,
max_stake=min(max_stake, stake_available),
current_entry_rate=current_rate, current_exit_rate=current_rate,
max_entry_stake=min(max_stake, stake_available),
max_exit_stake=min(max_stake, stake_available))
current_entry_profit=current_profit, current_exit_profit=current_profit)
# Check if we should increase our position
if stake_amount is not None and stake_amount > 0.0: