change default value - save_live_data_backtest as false

This commit is contained in:
Wagner Costa Santos 2022-11-17 10:14:30 -03:00
parent 1a19d90e2e
commit b01e4e3dbf
2 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ class IFreqaiModel(ABC):
if self.save_backtest_models:
logger.info('Backtesting module configured to save all models.')
self.save_live_data_backtest: bool = self.freqai_info.get(
"save_live_data_backtest", True)
"save_live_data_backtest", False)
if self.save_live_data_backtest:
logger.info('Live configured to save data for backtest.')

View File

@ -230,7 +230,7 @@ def get_timerange_backtest_live_models(config: Config) -> str:
dk = FreqaiDataKitchen(config)
models_path = dk.get_full_models_path(config)
timerange: TimeRange = TimeRange()
if not config.get("save_live_data_backtest", True):
if not config.get("save_live_data_backtest", False):
timerange, _ = dk.get_timerange_and_assets_end_dates_from_ready_models(models_path)
else:
timerange = dk.get_timerange_from_backtesting_live_dataframe()