Backtesting
Vectorized and event-driven backtests, costs, execution and tear sheets.
Choose the engine that fits the question: vectorized for fast signal research, event-driven for order-level realism, cross-sectional for universes and portfolio backtests for allocations. Every engine forbids lookahead, charges explicit costs and reports its assumptions.
Try it live
Common APIs
fn
vectorizedRun a single-asset vectorized backtest.fneventDrivenRun an event-driven backtest.fncrossSectionalBacktestSee the reference for its full contract.fnportfolioBacktestRun a ledger-backed multi-asset backtest.fnwalkForwardRun a walk-forward evaluation.constfeesCommission models.constslippageSlippage models — all worsen the fill price *against* the order's side.fntearSheetBuild a structured tear sheet from a backtest result.fnmonteCarloResampleSeeded bootstrap of bar returns → confidence bands on the compounded total return (report-shaped).fncreateTradingEnvironmentSee the reference for its full contract.Guides
Complete API reference
Browse all public exports, types, and feature imports below.