From 6a59103869c8459515592393d603d6916226f412 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 10 Feb 2022 19:40:36 +0100 Subject: [PATCH] update wallets in backtesting to ensure a fresh wallet is used closes #6388 --- freqtrade/optimize/backtesting.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/freqtrade/optimize/backtesting.py b/freqtrade/optimize/backtesting.py index 6c5933a51..3f569649a 100644 --- a/freqtrade/optimize/backtesting.py +++ b/freqtrade/optimize/backtesting.py @@ -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)