Backtest Engine#

A professional-grade portfolio backtesting framework built on PyArrow for high-performance columnar data processing. Designed for quantitative analysts, portfolio managers, and researchers who need realistic, reproducible simulations of portfolio strategies with institutional-level cost modeling.

  • Configurable via Excel or programmatic dict/YAML

  • Flexible data ingestion — reads CSV and Parquet market data with user-defined column names

  • Dates in ``YYYY-MM-DD`` format — rebalancing runs on the exact date listed in the portfolio file (not t+1), using that day’s prices

  • Realistic cost modeling — separate prices for execution, commission calculation, and mark-to-market valuation

  • Multi-variation testing — run parameter sweeps (commission, capital, cash reserve, date windows) loading data once

  • Batch testing — auto-discover and backtest every portfolio in a directory with a shared market data pool

  • Comprehensive reporting — Excel reports with CAGR, Sharpe, Sortino, Alpha, VaR, CVaR, Max Drawdown, annual returns, drawdown analysis, and portfolio weights

  • Interactive dashboard — cumulative returns vs. benchmark, composition charts, drawdown visualization, and returns distribution

Installation#

pip install kaxanuk-backtest-engine --extra-index-url https://license:{YOUR_LICENSE_KEY}@{SERVER}/simple/

Note

The full command with your license key is included ready to copy in the welcome email you receive after purchase.

You can acquire your license here.

Interested in collaborating on a custom project? Get in touch at software@kaxanuk.mx.

See the Changelog for the latest version and what changed in each release.


User guide

Discover the fundamentals of the Backtest Engine, learn how to configure your environment, and explore the essential features to get started quickly.

API Reference

Dive into the comprehensive API documentation, including modules, components, execution models, and public interfaces.

Methodology

Understand the assumptions and calculations behind the engine: price roles, execution model, cash reserve logic, daily valuation, and performance metrics.

Release Notes

Browse the full history of changes, improvements, fixes, and new features across releases.