diff --git a/freqtrade/data/dataprovider.py b/freqtrade/data/dataprovider.py index 51cacc2c5..ac3b61d1d 100644 --- a/freqtrade/data/dataprovider.py +++ b/freqtrade/data/dataprovider.py @@ -90,12 +90,10 @@ class DataProvider: if saved_pair not in self.__cached_pairs_backtesting: timerange = TimeRange.parse_timerange(None if self._config.get( 'timerange') is None else str(self._config.get('timerange'))) + # It is not necessary to add the training candles, as they # were already added at the beginning of the backtest. - add_train_candles = False - - # Move informative start time respecting startup_candle_count - startup_candles = self.get_required_startup(str(timeframe), add_train_candles) + startup_candles = self.get_required_startup(str(timeframe), False) tf_seconds = timeframe_to_seconds(str(timeframe)) timerange.subtract_start(tf_seconds * startup_candles) self.__cached_pairs_backtesting[saved_pair] = load_pair_history(