Merge pull request #7799 from freqtrade/fix-init-extra-rets

Use default `extra_returns_per_train`
This commit is contained in:
Matthias 2022-11-27 07:58:42 +01:00 committed by GitHub
commit 79a7dd5bd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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']