Package com.quantfinlib.backtest


@NullMarked package com.quantfinlib.backtest
Bar-based backtesting engines, execution models and performance analytics. Backtester is the single-instrument engine (fills at the next bar's open by default, see FillPolicy; intrabar gap-aware stops); ExecutionAwareBacktester upgrades signals to parent orders worked through a pluggable ExecutionModel (InstantExecution, SorExecution, IcebergExecution, LastLookExecution — FX last-look rejects on adverse hold-window moves) with multi-bar fills and one-call TCA per ParentOrder; ExecutionAlgoBacktester compares benchmark algorithms by cost, replaying execution.BenchmarkExecutor over a session's bars and grading it TCA-style (shortfall vs arrival, slippage vs session VWAP), with its simplifications stated in the javadoc. BenchmarkComparison reports alpha, beta, tracking error, information ratio and up/down capture against a benchmark, and DrawdownAnalytics reports drawdown structure: episode depth and duration and time under water. Sub-packages: strategies (built-ins), validation (walk-forward, purged K-fold, CSCV overfit probability, deflated Sharpe), portfolio (multi-asset), and tick (event-driven tick-level engine).