The TickerLab market page: index cards, a market map of the 60 largest stocks shaded by the day's move, and market breadth

What it does

  • See the market on any session since 2020: indices, a market map, breadth, sectors and the stocks that moved the index.
  • Screen 962 stocks by trend, volume and valuation, and keep watchlists and a portfolio.
  • Write a trading strategy as rules: a universe, a setup, a trigger, an entry, a stop and a target.
  • Backtest it on every signal since 2020 with fees and realistic fills, then as one account with position limits and a fixed risk per trade.
  • Track each saved strategy’s new signals after every session.
  • Plan a trade, or check what an investment would be worth today.

A strategy run as one simulated account: Rp 100M grows to Rp 167M across 773 trades since 2020, with returns by year (backtest as of October 27, 2026)

How it works

One Worker serves the pages, the API and the backtest engine, so a strategy runs against every signal since 2020 in 5 to 30 seconds. The account simulation then runs in the browser, so changing the capital or the risk per trade updates instantly. A scheduled job replays each saved strategy after the session closes; running it twice changes nothing.

Decisions

Choose the rules on 2020–2024, judge them once on 2025–26

Instead of tuning on all the data, where any rule can be made to look good. I picked every rule and setting on 2020–2024 only, then used January 2025 to October 2026, including the 2026 sell-off, once to judge them. One strategy only worked on that held-out period, so I dropped it rather than ship a rule fitted to the test.

Weight every trade by how much of its order filled

Instead of counting each trade’s full return. My first engine overstated results: an entry spread over several price levels fills fully on losing trades but only partly on winners. Weighted by fill, three strategies fell from profit factors of 1.44–1.84 to 0.96–1.47, and one lost money. I fixed the engine, switched to single limit orders and chose the strategies again.

Results

  • Two strategies held up on the held-out years. Breakout retest: profit factor 1.32 on 2020–24 and 1.32 on 2025–26. 52-week high retest: 1.64 and 1.48.
  • What didn’t work is published too: buying dips, buying blue chips after a panic, and buying the open after a limit-up close all lost money after fees in both periods.
  • Live signals tracked since October 21, 2026, the only true out-of-sample test.
  • 82 test files cover the engine and the pages. It runs for $5 a month and is free to use.

These are backtests of rules on past data, not investment advice.

Stack

TypeScript · React on Cloudflare Workers (Void) · Cloudflare D1 · Tailwind · TanStack Table · Lightweight Charts and Recharts · Vitest

Work with me

Hiring for work like this? I'm available now for full-time or contract, remote.

Next case study

2026 Orbit A multi-tenant AI agent platform for teams: agents with their own tools and budgets, approval steps for risky actions, and about 350 streaming answers per worker. Built with Claude Code from my spec.