portfolio_backtest
Backtest the account's current positions and cash over a historical period to compute performance metrics such as return, CAGR, volatility, Sharpe, Sortino, and drawdown.
Instructions
Backtest the account's current open positions and cash with backtesting.py.
The universe is read from this account's SQLite positions, options without reliable continuous history are reported as skipped, and results include the equity curve, return, CAGR, volatility, Sharpe, Sortino, and drawdown. The default window is five years; request up to 36500 calendar days. This is a current-holdings retrospective, not an out-of-sample strategy test.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ||
| start | No | ||
| account | Yes | ||
| lookback_days | No | ||
| commission_bps | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |