
Founder · Systems Design · In progress
Trading Algorithms
I designed automated trading systems the way I'd design any high-stakes product: written specs, testable hypotheses, safety rails, and the discipline to pause a strategy when the evidence says no.
Why it's a design case study
There's no UI here yet. The design work is the system: turning expert intuition into rules a machine can check, designing for failure, and deciding in advance what counts as proof.
It's the same skill as turning research into requirements, with a harsher test at the end. The market tells you quickly if you fooled yourself.
Step 1
Write the rulebook first
Each strategy has a spec the code must follow. Every number in it is tagged as decided, open, or to be settled by a test.
Step 2
Treat every idea as an experiment
A running log with a fixed protocol: walk-forward testing, at least 30 trades before picking a winner, and crash periods (2020, 2022, Aug 2024) judged on their own.
Step 3
Test cheaply first
Synthetic-price backtests before paying for historical data. Recorded data before paper accounts. Paper before any real money.
Step 4
Build the rails before the engine
Risk guards, compliance gates and kill switches are part of the first build, not an afterthought.
One signal, many accounts, hard rails
Each part can fail without taking down the others. Think of it like a building's electrical panel: the strategy is the power, and every account has its own breaker.
1 of 4
Signal
The strategy's rules decide when to enter and exit. It knows nothing about accounts.
2 of 4
Risk guards
Per-account limits on loss per trade, loss per day and trades per day, modeled on each firm's rules. Any guard can halt everything.
3 of 4
Copier
One signal goes to many accounts, sized for each one, and no account ever takes the opposite side of another.
4 of 4
Venue
Broker adapters, tested against a mock server first so error paths are proven without real orders.
Strategy 1 · Paused
The condor that looked good and wasn't
Defined-risk iron condors on index options, framed as an insurance business: collect a premium, never over-write exposure. I built a regime engine that sizes down in stressed markets, a scanner with liquidity filters, and an order engine that can't double-send.
The backtest from 2007 to 2026 won 82% of its trades and still lost money, because the average loss was about nine times the average win. Of more than 112 single-change variants, only one was barely profitable. I paused it instead of tuning it into a false positive.
Strategy 2 · Engine built
From my trading notes to testable rules
Intraday index futures, based on my own approach to session ranges and key levels. I rewrote my discretionary notes as measurable rules, then tested them. My two original setups showed no edge after fees, so I retired them, even though I'd spent weeks on them.
The replacement, a momentum strategy, was the first to stay profitable after real fees across 12 years of data. It also taught me that profitable isn't the same as fit for purpose: it earns too slowly for a prop-firm evaluation, which became the next design problem.
What counts as proof, decided before the results
- trades matched
- 2,824 / 2,824trades matchedLive engine replayed on recorded data vs. the backtest
- live-safety tests passed
- 321 / 321live-safety tests passedStage 1, before any broker connection
- profit factor after costs
- 1.24profit factor after costsCurrent strategy, 2,610 trades, 2013 to 2024 backtest
- Deflated Sharpe ratio
- 0.83Deflated Sharpe ratioAgainst a 0.95 bar I set, so it hasn't graduated yet
Guarding against fooling myself
- 2025 is a sealed holdout year that no test has touched.
- Every variant tried counts against the result, through a Deflated Sharpe ratio and the probability of backtest overfitting.
- An audit checks each backtest for common cheats, like using data the bot couldn't have had yet.
- Exchange holidays and major news days are skipped, even though that lowered the backtest result. The lower number is the honest one.
Proving the engine before any order
A live engine is different code from a backtester. If they disagree, the backtest no longer describes what the bot does. So before the bot touches a broker, it replays recorded market data and has to match the backtest on every trade. It did, on all 2,824.
A mismatch found on recorded data costs nothing. Found in a real account, it costs money.
How I worked with AI
I set the rules, the evaluation protocol and the risk policy, and made every keep-or-kill call. Claude Code agents wrote the code, built the tests and ran the experiments, then reported each finding back for a decision. About 13,800 lines of Python and 482 automated tests as of Nov 19, 2026.
What this project shows
- Systems design: clean separation of signal, risk, copier and venue.
- Research to requirements: expert intuition turned into rules a machine can check.
- Judgment: a written standard for proof, and a pause when the proof wasn't there.
The code is private. Figures are backtest and test-suite results; no account sizes or live results are shown.