@@ -48,7 +48,9 @@ class BacktestSummaryMetrics:
4848 max_drawdown_duration (int): Duration of the maximum drawdown.
4949 trades_per_year (float): Average trades executed per year.
5050 win_rate (float): Percentage of winning trades.
51+ current_win_rate (float): Win rate over recent trades.
5152 win_loss_ratio (float): Ratio of average win to average loss.
53+ current_win_loss_ratio (float): Win/loss ratio over recent trades.
5254 number_of_trades (int): Total number of trades executed.
5355 cumulative_exposure (float): Total exposure over the backtest period.
5456 exposure_ratio (float): Ratio of exposure to available capital.
@@ -81,7 +83,9 @@ class BacktestSummaryMetrics:
8183 max_drawdown_duration : int = None
8284 trades_per_year : float = None
8385 win_rate : float = None
86+ current_win_rate : float = None
8487 win_loss_ratio : float = None
88+ current_win_loss_ratio : float = None
8589 number_of_trades : int = None
8690 number_of_trades_closed : int = None
8791 cumulative_exposure : float = None
@@ -123,7 +127,9 @@ def to_dict(self) -> dict:
123127 "max_drawdown_duration" : self .max_drawdown_duration ,
124128 "trades_per_year" : self .trades_per_year ,
125129 "win_rate" : self .win_rate ,
130+ "current_win_rate" : self .current_win_rate ,
126131 "win_loss_ratio" : self .win_loss_ratio ,
132+ "current_win_loss_ratio" : self .current_win_loss_ratio ,
127133 "number_of_trades" : self .number_of_trades ,
128134 "number_of_trades_closed" : self .number_of_trades_closed ,
129135 "cumulative_exposure" : self .cumulative_exposure ,
0 commit comments