Skip to content

Commit

Permalink
check for backtesting dataframe
Browse files Browse the repository at this point in the history
  • Loading branch information
xsa-dev committed Apr 25, 2024
1 parent 778add6 commit 116bcc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion freqtrade/freqai/freqai_interface.py
Expand Up @@ -372,7 +372,7 @@ def start_backtesting(
else:
self.model = self.dd.load_data(pair, dk)

if self.model:
if self.model and len(dataframe_backtest):
pred_df, do_preds = self.predict(dataframe_backtest, dk)
append_df = dk.get_predictions_to_append(pred_df, do_preds, dataframe_backtest)
dk.append_predictions(append_df)
Expand Down

0 comments on commit 116bcc2

Please sign in to comment.