I build the full quantitative-finance stack โ a matching engine, the pricing math, a backtester, and a language to write strategies in โ then use it to test trading ideas honestly in a monthly research lab, publishing what the data really says (null results included).
| ๐งช Tests passing | ๐ฌ Research papers | ๐ฆ Quant repos | ๐งฎ Pricing engines | โก Order book |
|---|---|---|---|---|
| 140+ | 3 ยท reproducible | 6 | 3 cross-validating | 165k orders/sec |
๐ฌ Latest from Martingale: Note 004 โ How effective are liquidity-grab / FVG setups, statistically? โ Across 2,903 days of SPY, no edge: at 1 day nothing is significant; the 5-day "significant" results are just market drift, and the bearish patterns are followed by the largest positive moves โ the opposite of the claim. ย read the paper โ
๐งซ Currently researching: Note 005 โ Where do SPY's returns actually come from โ overnight vs. intraday?
A question, an experiment, an honest answer โ including the null ones. Most projects claim to find edges; this lab rigorously tests whether claimed edges are real, and reports what the data actually says. Every note is a hypothesis fixed in advance, a reproducible experiment with no lookahead, and a written paper โ findings that stand on their own, especially when the answer is "it doesn't work."
| # | Question | Honest finding |
|---|---|---|
| 001 | Do backtests overstate performance? | A 1-line lookahead bug inflates a strategy's Sharpe by +1.12; cherry-picking 337 strategies on random data fakes a 0.77 Sharpe that flips to โ0.54 out-of-sample |
| 002 | Does volatility predict next-day direction? | Across 2,881 days of SPY, today's volatility โ tomorrow's return correlation is +0.035 โ no meaningful directional edge (Rยฒ โ 0.1%) |
| 003 | Momentum vs. mean reversion, after costs? | Over 4,916 days, neither beats buy-and-hold โ but each is a regime bet: mean reversion earns a 1.07 Sharpe in bear markets, then its ~6ร turnover lets 5bp costs turn it negative |
๐ Read the papers ยท ๐ Reproduce any note ยท ๐ Cite this work ยท open to contributors
๐ค Auto-updated daily by a GitHub Action โ a backtest of my own quantsim engine, refreshed every morning. (paper research, not investment advice)
| as of | strategy | buy & hold | verdict |
|---|---|---|---|
2026-09-23 on sample series (offline) |
+60.9% ยท Sharpe 0.72 ยท maxDD -21.3% | +14.6% ยท Sharpe 0.22 | โ beating buy & hold |
Two ideas from my repos, brought to life as pure self-animating SVG (SMIL) โ regenerated daily by the same Action. Left: a limit order book matching engine. Right: Monte Carlo option pricing converging to BlackโScholes.
I got curious about how markets actually work โ so I built the whole stack to find out: a matching engine, the pricing math, a backtester, a live trading bot, and finally a language to write strategies in. Then I started a research lab to point that stack at real data and test popular trading ideas the honest way โ hypothesis first, no lookahead, realistic costs, and the null results published alongside the wins. I like zero-dependency code, tests that assert real properties (not just "it runs"), and work you can reproduce in under a minute.
- ๐ธ Quantitative finance โ backtesting, options pricing, market microstructure, honest strategy evaluation
- ๐ฌ Research โ reproducible experiments, dual-licensed papers, methodology over hype
- ๐ค AI developer tooling โ MCP servers and infrastructure for LLMs
| Project | What it does | Built with |
|---|---|---|
| ๐ฌ quant-research | Martingale โ monthly, peer-reviewable quant research. Reproducible experiments + written papers that report the honest answer, null results included. Open to contributors | Python |
| ๐ quantsim | Full quant stack โ backtesting engine, price-time-priority order book with market-impact execution, Monte Carlo risk analytics, and a live paper-trading bot that commits its P&L to git | Python ยท NumPy |
| ๐๏ธ exchange-simulator | Agent-based market where fat tails, volatility clustering & flash crashes emerge from autonomous traders โ statistically verified | Python |
| ๐ quantlang | A programming language for trading strategies โ hand-written lexer, parser & interpreter; compiled output proven bitwise-identical to hand-written Python | Python |
| ๐งฎ optionslab | Options pricing with three independent engines that cross-validate to 4 decimals โ BlackโScholes, binomial trees, Monte Carlo โ plus Greeks & implied vol | Python |
| ๐งญ pathfinding-visualizer | Watch A*, Dijkstra, BFS & Greedy race across a grid you draw โ 60fps canvas, zero deps | JavaScript |


