From dba30393fb6f2c165ed7c5f34bcdfd1b34a75d74 Mon Sep 17 00:00:00 2001 From: robcaulk Date: Sat, 26 Nov 2022 18:04:47 +0100 Subject: [PATCH] ensure extra_returns_per_train are set properly on first hist_preds build --- freqtrade/freqai/freqai_interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/freqai/freqai_interface.py b/freqtrade/freqai/freqai_interface.py index 94d471d13..0affabdc6 100644 --- a/freqtrade/freqai/freqai_interface.py +++ b/freqtrade/freqai/freqai_interface.py @@ -629,7 +629,7 @@ class IFreqaiModel(ABC): hist_preds_df['DI_values'] = 0 for return_str in dk.data['extra_returns_per_train']: - hist_preds_df[return_str] = 0 + hist_preds_df[return_str] = dk.data['extra_returns_per_train'][return_str] hist_preds_df['close_price'] = strat_df['close'] hist_preds_df['date_pred'] = strat_df['date']