From 582017dbc4e925f649a921dd4270e759a04bf413 Mon Sep 17 00:00:00 2001 From: drupman Date: Mon, 7 Aug 2023 17:12:33 -0300 Subject: [PATCH] (refactor) add method description --- utils/graphs.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/utils/graphs.py b/utils/graphs.py index 56a19f3..9e3aa26 100644 --- a/utils/graphs.py +++ b/utils/graphs.py @@ -274,6 +274,7 @@ class BacktestingGraphs: @staticmethod def get_trial_metrics(strategy_analysis: StrategyAnalysis): + """Isolated method because it needs to be called from analyze and simulate pages""" metrics_container = st.container() with metrics_container: col1, col2 = st.columns(2) @@ -334,4 +335,8 @@ class BacktestingGraphs: help="The Sharpe ratio is a measure that quantifies the risk-adjusted return of an investment" " or portfolio. It compares the excess return earned above a risk-free rate per unit of" " risk taken.") + + st.plotly_chart(strategy_analysis.pnl_over_time(), use_container_width=True) + strategy_analysis.create_base_figure(volume=add_volume, positions=add_positions, trade_pnl=add_pnl) + st.plotly_chart(strategy_analysis.figure(), use_container_width=True) return metrics_container \ No newline at end of file