From 062f9bd2adbc850b52001e57139b96d79dc84090 Mon Sep 17 00:00:00 2001 From: drupman Date: Tue, 31 Oct 2023 19:02:02 -0300 Subject: [PATCH] (feat) replace duration hours by days --- pages/strategy_performance/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/strategy_performance/app.py b/pages/strategy_performance/app.py index cf5b6c0..c54146d 100644 --- a/pages/strategy_performance/app.py +++ b/pages/strategy_performance/app.py @@ -346,8 +346,8 @@ if selected_db is not None: st.metric(label="Profit Factor", value=round(strategy_data_filtered.profit_factor, 2)) with col5: - st.metric(label='Duration (Hours)', - value=round(strategy_data_filtered.duration_seconds / 3600, 2)) + st.metric(label='Duration (Days)', + value=round(strategy_data_filtered.duration_seconds / (60 * 60 * 24))) with col6: st.metric(label='Price change', value=f"{round(strategy_data_filtered.price_change * 100, 2)} %")