diff --git a/freqtrade/freqai/data_drawer.py b/freqtrade/freqai/data_drawer.py index 4d41faa83..c48e19688 100644 --- a/freqtrade/freqai/data_drawer.py +++ b/freqtrade/freqai/data_drawer.py @@ -280,7 +280,7 @@ class FreqaiDataDrawer: # set new_pred values to nans (we want to signal to user that there was nothing # historically made during downtime. The newest pred will get appeneded later in # append_model_predictions) - new_pred.iloc[:, :] = np.nan.astype(new_pred.dtypes) + new_pred.iloc[:, :] = new_pred.astype(float).values * np.nan new_pred["date_pred"] = dataframe["date"] hist_preds = self.historic_predictions[pair].copy()