fix: minor missing statement in detail backtest fallback

This commit is contained in:
Matthias 2024-10-12 11:06:13 +02:00
parent 4b582b9d7e
commit aa8cefc110

View File

@ -1466,6 +1466,7 @@ class Backtesting:
].copy() ].copy()
if len(detail_data) == 0: if len(detail_data) == 0:
# Fall back to "regular" data if no detail data was found for this candle # Fall back to "regular" data if no detail data was found for this candle
self.dataprovider._set_dataframe_max_date(current_time)
self.backtest_loop(row, pair, current_time, end_date, trade_dir) self.backtest_loop(row, pair, current_time, end_date, trade_dir)
continue continue
detail_data.loc[:, "enter_long"] = row[LONG_IDX] detail_data.loc[:, "enter_long"] = row[LONG_IDX]