From c2e6dc11903bb38ea168a1df716a48d9c9bc0da7 Mon Sep 17 00:00:00 2001 From: drupman Date: Tue, 7 Nov 2023 15:56:56 -0300 Subject: [PATCH] (fix) express correctly duration in days --- pages/strategy_performance/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/strategy_performance/app.py b/pages/strategy_performance/app.py index 6b441c6..ea7405a 100644 --- a/pages/strategy_performance/app.py +++ b/pages/strategy_performance/app.py @@ -344,7 +344,7 @@ if selected_db is not None: value=round(strategy_data_filtered.profit_factor, 2)) with col5: st.metric(label='Duration (Days)', - value=round(strategy_data_filtered.duration_seconds / (60 * 60 * 24))) + value=round(strategy_data_filtered.duration_seconds / (60 * 60 * 24), 2)) with col6: st.metric(label='Price change', value=f"{round(strategy_data_filtered.price_change * 100, 2)} %")