Remove missleading comment

This commit is contained in:
Matthias 2022-09-24 15:51:20 +02:00
parent b1dbc3a65f
commit 166ae8e3a1

View File

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