From 94565d0d39808f023e63f47b6b69eb902a43af42 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 7 Jul 2024 20:03:49 +0200 Subject: [PATCH] "best" should be shown in gold --- freqtrade/optimize/hyperopt_output.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/freqtrade/optimize/hyperopt_output.py b/freqtrade/optimize/hyperopt_output.py index 81a7ec6bd..9e0bbbb5b 100644 --- a/freqtrade/optimize/hyperopt_output.py +++ b/freqtrade/optimize/hyperopt_output.py @@ -90,9 +90,13 @@ class HyperoptOutput: ) if r["results_metrics"].get("profit_total_abs", 0) != 0.0 else "--", - style="green" - if r["results_metrics"].get("profit_total_abs", 0) > 0 - else "red", + style=( + "green" + if r["results_metrics"].get("profit_total_abs", 0) > 0 + else "red" + ) + if not r["is_best"] + else "", ), # "Avg duration": str(r["results_metrics"]["holding_avg"]), @@ -112,7 +116,7 @@ class HyperoptOutput: ], style=" ".join( [ - "bold " if r["is_best"] and highlight_best else "", + "bold gold1" if r["is_best"] and highlight_best else "", "italic " if r["is_initial_point"] else "", ] ),