Add entry_tag to leverage callback

closes #6929
This commit is contained in:
Matthias
2022-06-05 10:21:06 +02:00
parent 27bea580d4
commit a790bad1e4
7 changed files with 16 additions and 11 deletions

View File

@@ -704,7 +704,7 @@ class Backtesting:
current_rate=row[OPEN_IDX],
proposed_leverage=1.0,
max_leverage=max_leverage,
side=direction,
side=direction, entry_tag=entry_tag,
) if self._can_short else 1.0
# Cap leverage between 1.0 and max_leverage.
leverage = min(max(leverage, 1.0), max_leverage)