make sure backtesting gets the populated indicators with slimmed down user strat

This commit is contained in:
robcaulk 2022-07-21 12:48:09 +02:00
parent ca4dd58642
commit e694ea1cfd

View File

@ -106,6 +106,10 @@ class IFreqaiModel(ABC):
elif not self.follow_mode:
self.dk = FreqaiDataKitchen(self.config, self.dd, self.live, metadata["pair"])
logger.info(f"Training {len(self.dk.training_timeranges)} timeranges")
dataframe = self.dk.use_strategy_to_populate_indicators(
strategy, prediction_dataframe=dataframe, pair=metadata["pair"]
)
dk = self.start_backtesting(dataframe, metadata, self.dk)
dataframe = self.remove_features_from_df(dk.return_dataframe)