From 89599b09c3dedbfd2af5ce0fc57a55b44bfc53fc Mon Sep 17 00:00:00 2001 From: Joe Schr Date: Wed, 1 Sep 2021 10:31:31 +0200 Subject: [PATCH] fix: use argument `timeframe` instead of `self.` --- freqtrade/strategy/strategy_helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/strategy/strategy_helper.py b/freqtrade/strategy/strategy_helper.py index d978a0305..0c58eee85 100644 --- a/freqtrade/strategy/strategy_helper.py +++ b/freqtrade/strategy/strategy_helper.py @@ -125,7 +125,7 @@ def find_candle_datetime_faster(dataframe: pd.DataFrame, timeframe: str, query_d if(now and now == query_date): candle = dataframe.iloc[-1] else: - candle_date = timeframe_to_prev_date(self.timeframe, query_date) + candle_date = timeframe_to_prev_date(timeframe, query_date) candle = dataframe.loc[dataframe.date == candle_date] return candle