A. NADEEM  /  KUALA LUMPUR
Back to portfolio
02Selected work

Axiom — Quantitative Research

Interactive demoPython / PolarsPostgreSQLNext.jsC++ / Numba

What it does

Axiom takes a trading idea from daily prices that never get edited, through signals and orders, to a portfolio ledger that has to balance. Each experiment records its data version, parameters and results, so you can see the assumptions next to the return.

It runs on a fixed 60-ETF research universe (not point-in-time, so subject to survivorship bias), and a 342-instrument, ten-year synthetic workload tests how it scales. It supports market, limit, stop and stop-limit orders, and compares naive, logistic, random-forest and XGBoost models with purged walk-forward testing (train on the past, test on the next unseen stretch, with a gap so nothing leaks between them).

The explorer below holds saved runs, each recorded with its dataset hash and the clean commit that produced it. Observed SPY prices and synthetic engineering tests are labeled separately. On observed SPY prices, the trend rule returned less than buy and hold over the same dates, but with a smaller worst drawdown; that trade-off is the thing to look at, not the return alone. The full local workspace adds configurable research runs, price charts, experiment history and persistent paper accounts.

Loading saved research…

Built around accounting and causality

A signal computed from one day’s close can’t trade until the next session, so a backtest never uses information it wouldn’t have had. One cash account holds signed positions; commissions, partial fills and realized and unrealized P&L reconcile after every mark. A risk layer approves, reduces or rejects exposure before execution.

Measure before optimizing

The 859,788-bar synthetic workload includes Python, NumPy, Polars, Numba and C++ kernel comparisons. Profiling found redundant position serialization in the risk checks, and removing it left fills and final equity identical. A regression test on a small fixture confirms the change doesn’t alter replay output.

What it’s built with

It’s Python 3.12+ with Polars, NumPy and Numba, plus optional C++ kernels for the hot loops. Market data is stored as immutable Parquet snapshots with PostgreSQL tracking the metadata, scikit-learn and XGBoost handle the walk-forward models, and a Next.js and TypeScript dashboard talks to a FastAPI backend through an authenticated proxy. It has 88 tests, including Postgres integration, and ruff and mypy come back clean.

Who it’s for

Anyone deciding whether a trading idea is any good. Students and independent researchers can run it locally with no data account, since synthetic data comes with it.

Daily data is the supported scope, and there’s no real-money execution: paper replay is persistent and idempotent, and the optional Yahoo adapter can pull in newly completed bars. Current limitations include the fixed ETF universe, borrow and financing costs that aren’t modeled, no tick data, and not knowing the price path inside each daily bar.

Axiom source, methodology and local setup

Interested? Get in touch or grab the CV.