update wallets in backtesting to ensure a fresh wallet is used
closes #6388
This commit is contained in:
parent
be84a028c1
commit
6a59103869
@ -709,7 +709,8 @@ class Backtesting:
|
|||||||
"""
|
"""
|
||||||
trades: List[LocalTrade] = []
|
trades: List[LocalTrade] = []
|
||||||
self.prepare_backtest(enable_protections)
|
self.prepare_backtest(enable_protections)
|
||||||
|
# Ensure wallets are uptodate (important for --strategy-list)
|
||||||
|
self.wallets.update()
|
||||||
# Use dict of lists with data for performance
|
# Use dict of lists with data for performance
|
||||||
# (looping lists is a lot faster than pandas DataFrames)
|
# (looping lists is a lot faster than pandas DataFrames)
|
||||||
data: Dict = self._get_ohlcv_as_lists(processed)
|
data: Dict = self._get_ohlcv_as_lists(processed)
|
||||||
|
Loading…
Reference in New Issue
Block a user