From 9297a90d7f996e4db32d31e47aca26a219c3ef9c Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 30 Oct 2023 18:26:25 +0100 Subject: [PATCH] Use proper indexing to avoid deprecation warnings --- freqtrade/optimize/analysis/lookahead.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freqtrade/optimize/analysis/lookahead.py b/freqtrade/optimize/analysis/lookahead.py index 924e43e07..9fa4235e7 100755 --- a/freqtrade/optimize/analysis/lookahead.py +++ b/freqtrade/optimize/analysis/lookahead.py @@ -94,8 +94,8 @@ class LookaheadAnalysis(BaseAnalysis): # compare_df now comprises tuples with [1] having either 'self' or 'other' if 'other' in col_name[1]: continue - self_value = compare_df_row[col_idx] - other_value = compare_df_row[col_idx + 1] + self_value = compare_df_row.iloc[col_idx] + other_value = compare_df_row.iloc[col_idx + 1] # output differences if self_value != other_value: