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:
if tf == tfs[-1]:
sgi = True # doing this last allows user to use all tf raw prices in labels
dataframe = strategy.populate_any_indicators(
pair,
dataframe.copy(),
tf,
informative=base_dataframes[tf],
set_generalized_indicators=sgi
)
if pairs:
for i in pairs:
if pair in i:
continue # dont repeat anything from whitelist
dataframe = strategy.populate_any_indicators(
i,
dataframe.copy(),
tf,
informative=corr_dataframes[i][tf]
)
dataframe = strategy.populate_any_indicators(
pair,
dataframe.copy(),
tf,
informative=base_dataframes[tf],
set_generalized_indicators=sgi
)
if pairs:
for i in pairs:
if pair in i:
continue # dont repeat anything from whitelist
dataframe = strategy.populate_any_indicators(
i,
dataframe.copy(),
tf,
informative=corr_dataframes[i][tf]
)
self.get_unique_classes_from_labels(dataframe)