From 7b49dc8c115190ca5f8335240c5adfa59cbc19d9 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 2 Jan 2026 18:23:00 +0100 Subject: [PATCH] chore: improve optimize reports stability --- freqtrade/optimize/optimize_reports/bt_output.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/freqtrade/optimize/optimize_reports/bt_output.py b/freqtrade/optimize/optimize_reports/bt_output.py index 026052ae6..754ed6b9f 100644 --- a/freqtrade/optimize/optimize_reports/bt_output.py +++ b/freqtrade/optimize/optimize_reports/bt_output.py @@ -287,9 +287,9 @@ def text_table_add_metrics(strat_results: dict) -> None: if "trading_mode" in strat_results else [] ) - + wallet_metrics: list[tuple[str, str]] = [] if wallet_stats := strat_results.get("wallet_stats"): - wallet_metrics = ( + wallet_metrics = [ ( "Min/Max balance realized", f"{fmt_coin(strat_results['csum_min'], stake)} / " @@ -304,7 +304,7 @@ def text_table_add_metrics(strat_results: dict) -> None: "Min/Max balance dates", f"{wallet_stats['low_date']} / {wallet_stats['high_date']}", ), - ) + ] # Newly added fields should be ignored if they are missing in strat_results. hyperopt-show # command stores these results and newer version of freqtrade must be able to handle old