fix: keep pair index per pair

closes #11479
This commit is contained in:
Matthias
2025-03-09 15:00:13 +01:00
parent 6efe6bbfc2
commit 35cc7da9b3
3 changed files with 14 additions and 11 deletions

View File

@@ -1552,7 +1552,9 @@ class Backtesting:
row_index += 1
indexes[pair] = row_index
is_last_row = current_time == end_date
self.dataprovider._set_dataframe_max_index(self.required_startup + row_index)
self.dataprovider._set_dataframe_max_index(
pair, self.required_startup + row_index
)
trade_dir = self.check_for_trade_entry(row)
pair_tradedir_cache[pair] = trade_dir