From 7192ed7be61376be3d7d70ae296e26dee3b7c243 Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 19 Oct 2022 11:57:18 +0200 Subject: [PATCH] Fix bug with dataframe not being 0 indexed --- freqtrade/exchange/exchange.py | 1 + 1 file changed, 1 insertion(+) diff --git a/freqtrade/exchange/exchange.py b/freqtrade/exchange/exchange.py index afd154dcd..313d89e09 100644 --- a/freqtrade/exchange/exchange.py +++ b/freqtrade/exchange/exchange.py @@ -1936,6 +1936,7 @@ class Exchange: candle_limit = self.ohlcv_candle_limit(timeframe, self._config['candle_type_def']) # Age out old candles ohlcv_df = ohlcv_df.tail(candle_limit + self._startup_candle_count) + ohlcv_df = ohlcv_df.reset_index(drop=True) self._klines[(pair, timeframe, c_type)] = ohlcv_df else: self._klines[(pair, timeframe, c_type)] = ohlcv_df