change default value - save_live_data_backtest as false
This commit is contained in:
parent
1a19d90e2e
commit
b01e4e3dbf
@ -68,7 +68,7 @@ class IFreqaiModel(ABC):
|
|||||||
if self.save_backtest_models:
|
if self.save_backtest_models:
|
||||||
logger.info('Backtesting module configured to save all models.')
|
logger.info('Backtesting module configured to save all models.')
|
||||||
self.save_live_data_backtest: bool = self.freqai_info.get(
|
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:
|
if self.save_live_data_backtest:
|
||||||
logger.info('Live configured to save data for backtest.')
|
logger.info('Live configured to save data for backtest.')
|
||||||
|
|
||||||
|
@ -230,7 +230,7 @@ def get_timerange_backtest_live_models(config: Config) -> str:
|
|||||||
dk = FreqaiDataKitchen(config)
|
dk = FreqaiDataKitchen(config)
|
||||||
models_path = dk.get_full_models_path(config)
|
models_path = dk.get_full_models_path(config)
|
||||||
timerange: TimeRange = TimeRange()
|
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)
|
timerange, _ = dk.get_timerange_and_assets_end_dates_from_ready_models(models_path)
|
||||||
else:
|
else:
|
||||||
timerange = dk.get_timerange_from_backtesting_live_dataframe()
|
timerange = dk.get_timerange_from_backtesting_live_dataframe()
|
||||||
|
Loading…
Reference in New Issue
Block a user