From 056bc93bc6a6772dc55ffd993e08ec571b6d80c2 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 1 Aug 2021 19:16:26 +0200 Subject: [PATCH] backtesting needs startup_candle_count fixes informative-pair loading being different between --strategy-list and --strategy. --- freqtrade/optimize/backtesting.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/freqtrade/optimize/backtesting.py b/freqtrade/optimize/backtesting.py index 628289b7f..45e60e013 100644 --- a/freqtrade/optimize/backtesting.py +++ b/freqtrade/optimize/backtesting.py @@ -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()