starting backtest live models

This commit is contained in:
Wagner Costa Santos
2022-09-24 12:28:52 -03:00
parent 2cc00a1a2c
commit 3ee7eb63f7
2 changed files with 34 additions and 0 deletions

View File

@@ -134,6 +134,7 @@ class IFreqaiModel(ABC):
# the concatenated results for the full backtesting period back to the strategy.
elif not self.follow_mode:
self.dk = FreqaiDataKitchen(self.config, self.live, metadata["pair"])
self.dk.get_timerange_from_ready_models()
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"]