check for backtesting dataframe

This commit is contained in:
Aleksey Savin 2024-04-25 14:35:02 +00:00
parent 778add6d92
commit 116bcc2bce

View File

@ -372,7 +372,7 @@ class IFreqaiModel(ABC):
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)