mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
backtesting needs startup_candle_count
fixes informative-pair loading being different between --strategy-list and --strategy.
This commit is contained in:
parent
e78be75e8c
commit
056bc93bc6
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user