Expand description
Backtest reporting โ trade log, aggregate statistics, and enhanced analytics.
This module provides per-trade results, per-position summaries, and rich aggregate statistics including risk-adjusted metrics (Sharpe, Sortino, Calmar), streak analysis, duration stats, monthly returns, and breakdowns by symbol, group, side, and close reason.
Structsยง
- Backtest
Result - Aggregate backtest statistics produced by
BacktestRunner. - Close
Reason Stats - Statistics for one close reason.
- Duration
Stats - Trade or completed-campaign holding time statistics (all values in seconds).
- Monthly
Return - P&L summary for one calendar month.
- Position
Summary - Aggregated result for one position across all its close events.
- Risk
Metrics - Risk-adjusted return metrics.
- Streak
Stats - Consecutive win/loss streak analysis.
- Subset
Stats - Reusable statistics block computed from any subset of trades.
- Trade
Result - Result of a single closed trade (or partial close).