Fix for passing CI

This commit is contained in:
mrpabloyeah
2025-04-02 16:02:42 +02:00
parent 3edc442f48
commit 087fb31f26

View File

@@ -202,7 +202,7 @@ def calculate_max_drawdown(
else max_drawdown_df["drawdown"].idxmin() 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] high_date = profit_results.loc[high_idx, date_col]
low_date = profit_results.loc[idxmin, date_col] low_date = profit_results.loc[idxmin, date_col]
high_val = max_drawdown_df.loc[high_idx, "cumulative"] high_val = max_drawdown_df.loc[high_idx, "cumulative"]