All work
My most complicated build

TraderBoy: an automated trading system

Twenty strategies watching the markets, deciding what to trade, checking themselves against hard limits and learning from every result.

One position, fully explained
One position, fully explained. The chart, where it was bought, where it will be sold if it falls, and in plain words why it is being held.

The engine, running.

Every tick is read, every order is checked against the risk rules, and each decision is recorded.

Figures for demonstration purposes only.
400,000+lines of code and tests
6,400automated tests
78dashboard screens
The work

What it does

  1. 01Reads eight live data feeds and combines them
  2. 02Scores every opportunity across twenty strategies
  3. 03Sizes each position and enforces hard limits on losses
  4. 04Learns from every closed trade
  5. 05Shows it all on a dashboard of 78 screens

How it works

  1. 1
    Reads8 live feeds: company filings, earnings, options activity, economic data, crypto markets
  2. 2
    DecidesTwenty strategies each score what they see
  3. 3
    Checks itselfHard limits on every position and every day
  4. 4
    LearnsEach closed trade teaches the system
By the numbers
  • 186service modules
  • 448test files
  • 40open-source trading systems studied
  • 12accounts competing in its tournament
Built on

Standing on good work, then going further

I did not start from a blank page. I studied 40 open-source trading systems, wrote up what each did well, adopted the best ideas and rejected the rest - then built what none of them had.

Projects studied
  • Freqtrade
  • Nautilus Trader
  • QuantConnect Lean
  • Qlib
  • pysystemtrade
  • TradingAgents
  • FinRL
  • Lumibot
  • PyBroker
  • OctoBot
  • Hummingbot
  • + 29 more
What it is built on
Market data
filings, earnings, economic series, prices, options and crypto feeds
Back-testing and statistics
vectorbt, quantstats, PyPortfolioOpt, scipy, pandas
Machine learning
hidden Markov models, optuna, FinBERT, a vector memory
Dashboard
Next.js, React, live charts
Storage
PostgreSQL
What it adds
  • Twenty strategies scored against each other by conviction, not run in isolation
  • A cascade of risk gates every trade must pass: circuit breakers, sector, market exposure, event embargo, correlation
  • Position sizing worked out from the evidence for each trade
  • A tournament: twelve accounts with different settings compete, and the winners are chosen by statistical test
  • A promotion gate before any strategy is trusted: enough closed trades, tested on data it has never seen, and checked against chance
  • A record of failed approaches, checked before another attempt
The path

How a decision is made

Every minute, the same path.

  1. 1
    Eight live feeds come inFilings, earnings, options activity, economic data, crypto markets.
  2. 2
    Strategies are evaluatedEvery 60 seconds.
  3. 3
    Signals are scoredStrength, confidence, market conditions and track record combined into one figure.
  4. 4
    Risk gatesEach must pass, in order.
  5. 5
    Sized and routedTo the right account.
  6. 6
    Exits watchedEvery 30 seconds: target, stop, trailing stop, time, change in conditions.
  7. 7
    Learned fromEach closed trade is reviewed and fed back.
The product

What it looks like.

The whole system on one screen
02The whole system on one screen
Every account and strategy, the mood of the market, and where the money is placed.
Limits it enforces on itself
03Limits it enforces on itself
Daily and weekly loss limits shown as gauges. Past a limit, trading is cut back or stopped.
What the portfolio is really betting on
04What the portfolio is really betting on
Style, sector and strategy mix, broken down to show concentrations.
Spotting a strategy that is fading
05Spotting a strategy that is fading
Each strategy is tracked against the market. Flags a weakening strategy and scales it back.