From 3d9360bb8cc51d36cfc7eca6e092f7ebcd80868d Mon Sep 17 00:00:00 2001 From: Wade Dyck Date: Mon, 27 Dec 2021 11:46:05 -0700 Subject: [PATCH] When backtesting, pass the candle_type to load_data. --- freqtrade/optimize/backtesting.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/freqtrade/optimize/backtesting.py b/freqtrade/optimize/backtesting.py index 3fe9a55f8..caf568faf 100644 --- a/freqtrade/optimize/backtesting.py +++ b/freqtrade/optimize/backtesting.py @@ -196,6 +196,7 @@ class Backtesting: startup_candles=self.required_startup, fail_without_data=True, data_format=self.config.get('dataformat_ohlcv', 'json'), + candle_type=self.config.get('candle_type_def', CandleType.SPOT) ) min_date, max_date = history.get_timerange(data) @@ -224,6 +225,7 @@ class Backtesting: startup_candles=0, fail_without_data=True, data_format=self.config.get('dataformat_ohlcv', 'json'), + candle_type=self.config.get('candle_type_def', CandleType.SPOT) ) else: self.detail_data = {}