From 2f33b97b95c62ab0fec089098a6cf1eeae01d041 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 9 Jul 2021 07:19:44 +0200 Subject: [PATCH] Validate startup candles for backtesting correctly closes #5250 --- freqtrade/optimize/backtesting.py | 1 + 1 file changed, 1 insertion(+) diff --git a/freqtrade/optimize/backtesting.py b/freqtrade/optimize/backtesting.py index 7c6b7cbc3..8f818047d 100644 --- a/freqtrade/optimize/backtesting.py +++ b/freqtrade/optimize/backtesting.py @@ -116,6 +116,7 @@ class Backtesting: # Get maximum required startup period self.required_startup = max([strat.startup_candle_count for strat in self.strategylist]) + self.exchange.validate_required_startup_candles(self.required_startup, self.timeframe) def __del__(self): LoggingMixin.show_output = True