backtesting needs startup_candle_count

fixes informative-pair loading  being different between --strategy-list and
--strategy.
This commit is contained in:
Matthias 2021-08-01 19:16:26 +02:00
parent e78be75e8c
commit 056bc93bc6

View File

@ -122,6 +122,8 @@ class Backtesting:
# Get maximum required startup period
self.required_startup = max([strat.startup_candle_count for strat in self.strategylist])
# Add maximum startup candle count to configuration for informative pairs support
self.config['startup_candle_count'] = self.required_startup
self.exchange.validate_required_startup_candles(self.required_startup, self.timeframe)
self.progress = BTProgress()