From 087fb31f26d43f1b717f1942a92aa768ad38cbd6 Mon Sep 17 00:00:00 2001 From: mrpabloyeah Date: Wed, 2 Apr 2025 16:02:42 +0200 Subject: [PATCH] Fix for passing CI --- freqtrade/data/metrics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/data/metrics.py b/freqtrade/data/metrics.py index f841c1909..8e234df85 100644 --- a/freqtrade/data/metrics.py +++ b/freqtrade/data/metrics.py @@ -202,7 +202,7 @@ def calculate_max_drawdown( else max_drawdown_df["drawdown"].idxmin() ) - high_idx = max_drawdown_df.iloc[:idxmin+1]["high_value"].idxmax() + high_idx = max_drawdown_df.iloc[: idxmin + 1]["high_value"].idxmax() high_date = profit_results.loc[high_idx, date_col] low_date = profit_results.loc[idxmin, date_col] high_val = max_drawdown_df.loc[high_idx, "cumulative"]