From edc0e9c75fe84c8055390439818d8a2f16438d21 Mon Sep 17 00:00:00 2001 From: Sam Germain Date: Thu, 3 Feb 2022 01:30:33 -0600 Subject: [PATCH] backtesting._get_ohlcv_as_lists changed candle_type to candle_type_def --- freqtrade/optimize/backtesting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/optimize/backtesting.py b/freqtrade/optimize/backtesting.py index aa3fa4a8a..08b84f376 100644 --- a/freqtrade/optimize/backtesting.py +++ b/freqtrade/optimize/backtesting.py @@ -337,7 +337,7 @@ class Backtesting: pair, self.timeframe, df_analyzed, - CandleType.FUTURES if self.trading_mode == TradingMode.FUTURES else CandleType.SPOT + self.config['candle_type_def'] ) df_analyzed = df_analyzed.drop(df_analyzed.head(1).index)