fix leftover bug in indicator population

This commit is contained in:
robcaulk 2022-08-14 21:42:55 +02:00
parent 8961b8d560
commit 006b11e5d5

View File

@ -965,23 +965,23 @@ class FreqaiDataKitchen:
for tf in tfs: for tf in tfs:
if tf == tfs[-1]: if tf == tfs[-1]:
sgi = True # doing this last allows user to use all tf raw prices in labels sgi = True # doing this last allows user to use all tf raw prices in labels
dataframe = strategy.populate_any_indicators( dataframe = strategy.populate_any_indicators(
pair, pair,
dataframe.copy(), dataframe.copy(),
tf, tf,
informative=base_dataframes[tf], informative=base_dataframes[tf],
set_generalized_indicators=sgi set_generalized_indicators=sgi
) )
if pairs: if pairs:
for i in pairs: for i in pairs:
if pair in i: if pair in i:
continue # dont repeat anything from whitelist continue # dont repeat anything from whitelist
dataframe = strategy.populate_any_indicators( dataframe = strategy.populate_any_indicators(
i, i,
dataframe.copy(), dataframe.copy(),
tf, tf,
informative=corr_dataframes[i][tf] informative=corr_dataframes[i][tf]
) )
self.get_unique_classes_from_labels(dataframe) self.get_unique_classes_from_labels(dataframe)