From 3f956441fcb4c6d011c1ac95c8f9e4fb249fb235 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 23 May 2021 15:53:54 +0200 Subject: [PATCH] Properly format % of zero_duration_trades --- freqtrade/optimize/optimize_reports.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/optimize/optimize_reports.py b/freqtrade/optimize/optimize_reports.py index ce6758210..a76bb2e3a 100644 --- a/freqtrade/optimize/optimize_reports.py +++ b/freqtrade/optimize/optimize_reports.py @@ -540,7 +540,7 @@ def text_table_add_metrics(strat_results: Dict) -> str: if 'zero_duration_trades' in strat_results: zero_duration_trades_per = \ 100.0 / strat_results['total_trades'] * strat_results['zero_duration_trades'] - zero_duration_trades = f'{zero_duration_trades_per}% ' \ + zero_duration_trades = f'{zero_duration_trades_per:.2f}% ' \ f'({strat_results["zero_duration_trades"]})' metrics = [