update wallets in backtesting to ensure a fresh wallet is used

closes #6388
This commit is contained in:
Matthias 2022-02-10 19:40:36 +01:00
parent be84a028c1
commit 6a59103869
1 changed files with 2 additions and 1 deletions

View File

@ -709,7 +709,8 @@ class Backtesting:
"""
trades: List[LocalTrade] = []
self.prepare_backtest(enable_protections)
# Ensure wallets are uptodate (important for --strategy-list)
self.wallets.update()
# Use dict of lists with data for performance
# (looping lists is a lot faster than pandas DataFrames)
data: Dict = self._get_ohlcv_as_lists(processed)