backtesting._get_ohlcv_as_lists changed candle_type to candle_type_def

This commit is contained in:
Sam Germain 2022-02-03 01:30:33 -06:00
parent 1f74cfe841
commit edc0e9c75f

View File

@ -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)