backtest_live models tests refactoring

This commit is contained in:
Wagner Costa Santos
2022-09-28 08:48:32 -03:00
parent 3c002ff752
commit 55ebbeec18
4 changed files with 27 additions and 45 deletions

View File

@@ -84,11 +84,6 @@ class FreqaiDataKitchen:
self.backtest_live_models = config.get("freqai_backtest_live_models", False)
if not self.live:
if (not self.config.get("timerange") and
not self.backtest_live_models):
raise OperationalException(
'Please pass --timerange if you intend to use FreqAI for backtesting.')
self.full_path = freqai_util.get_full_model_path(self.config)
self.full_timerange = self.create_fulltimerange(
self.config["timerange"], self.freqai_config.get("train_period_days", 0)