mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Add timeframe info into 'increase startup_candle_count' log message
This commit is contained in:
parent
2d6a49013f
commit
663b1e11f8
|
@ -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(
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user