Module report

Source
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§

ClosedTradeReport
A single closed (completed) trade.
DailyReturnReport
One entry in the daily returns series.
OpenTradeReport
A single currently-open trade.
PerformanceMetrics
Aggregated performance metrics for one slice of trades (All, Long-only, or Short-only).
StrategyConfigReport
Strategy configuration snapshot (public-facing subset).
StrategyReport
Complete strategy backtest report.
TradingRangeReport
Trading time range (first entry → last exit).