Expand description
Strategy report data structures for exporting backtest results.
After executing a strategy script, call Instance::strategy_report() to
obtain a StrategyReport — a complete snapshot of performance metrics,
trade lists, equity curves, and daily returns sufficient for rendering a
TradingView-style Strategy Tester UI.
All types derive serde::Serialize with camelCase field names.
Structs§
- Closed
Trade Report - A single closed (completed) trade.
- Daily
Return Report - One entry in the daily returns series.
- Open
Trade Report - A single currently-open trade.
- Performance
Metrics - Aggregated performance metrics for one slice of trades (All, Long-only, or Short-only).
- Strategy
Config Report - Strategy configuration snapshot (public-facing subset).
- Strategy
Report - Complete strategy backtest report.
- Trading
Range Report - Trading time range (first entry → last exit).