Add timeframe info into 'increase startup_candle_count' log message

This commit is contained in:
Thomas Joußen 2023-12-15 11:10:44 +00:00
parent 2d6a49013f
commit 663b1e11f8
2 changed files with 3 additions and 2 deletions

View File

@ -344,7 +344,8 @@ class DataProvider:
if add_train_candles:
train_candles = freqai_config['train_period_days'] * 86400 / tf_seconds
total_candles = int(self._config['startup_candle_count'] + train_candles)
logger.info(f'Increasing startup_candle_count for freqai to {total_candles}')
logger.info(f'Increasing startup_candle_count for freqai on {timeframe} '
f'to {total_candles}')
return total_candles
def get_pair_dataframe(

View File

@ -51,7 +51,7 @@ def test_freqai_backtest_load_data(freqai_conf, mocker, caplog):
backtesting = Backtesting(deepcopy(freqai_conf))
backtesting.load_bt_data()
assert log_has_re('Increasing startup_candle_count for freqai to.*', caplog)
assert log_has_re('Increasing startup_candle_count for freqai on.*to.*', caplog)
Backtesting.cleanup()