Skip to content
The Gauntlet · The method

How the Gauntlet tests a trading strategy

Most backtests answer the question “did this make money on the stocks I picked?” The Gauntlet asks a harder one: would this rule have earned more than chance, after costs, on stocks hindsight didn't choose, in more than one kind of market? Every strategy in the Casebook, and every idea anyone runs, goes through the same steps, below.

1. The idea becomes one precise rule

An idea in plain words is restated as a rule on one stock's daily prices: an entry at the close of the day it fires, a stop, a target, and an exit at the close after at most 30 trading days, plus the rule's own exit, checked at each close, if it has one. Where the idea is vague, the restatement says what it chose. It refuses only when nothing testable is left, and it never judges whether the idea is good.

An AI writes the code for that rule, a second pass reviews it, and it runs in an isolated process. Results are counted in R: one R is the distance from the entry to the stop. A clean stop-out is −1R; a target twice as far away as the stop is +2R.

2. 42 stocks, and the 22 that decide

Fifteen years of daily prices, or from listing for the few that came to market later, for 42 large US stocks in two groups. The verdict is decided on 22 laggards: large, heavily traded value, cyclical and defensive stocks, chosen because hindsight would not pick them. Beside them, 20 of today's winners, the stocks anyone testing today thinks of first.

A rule that clears the bar on the winners and not on the laggards is a survivorship mirage: the winners' own rise did the work. Two of the 24 laggards chosen, WBA and K, have no full price history since leaving the market and are left out.

The 22 laggards (decide)
  • GE
  • IBM
  • INTC
  • T
  • F
  • MMM
  • C
  • WFC
  • KO
  • PFE
  • MO
  • VZ
  • CSCO
  • KHC
  • KMI
  • GIS
  • CAG
  • D
  • SO
  • DUK
  • NEM
  • CLF
The 20 winners (shown beside)
  • AAPL
  • MSFT
  • NVDA
  • GOOGL
  • META
  • AMZN
  • TSLA
  • AMD
  • AVGO
  • JPM
  • BAC
  • XOM
  • WMT
  • JNJ
  • PG
  • UNH
  • V
  • MA
  • HD
  • DIS

3. Each stock's own trading costs

Every trade pays its own stock's spread at the time, estimated from that stock's daily highs and lows (the Corwin-Schultz estimator, the median of the last 60 days, 2 to 40 basis points a crossing). Entering at the close crosses the spread once; a stop or a time exit crosses it again; a target filled by a limit order doesn't.

A backtest counts every signal as filled. In our own records the entries that did fill were worse than average, by about 0.045R a trade, so every trade here is charged that gap as well.

A day whose range touches both the stop and the target counts as a stop. A day that opens through a level fills at the open: worse than the stop, or better than the target.

4. Bull, flat and bear markets, judged apart

Every trading day is labelled by the S&P 500 (SPY) against its 200-day average: more than 3% above it is a bull market, more than 3% below a bear market, anything between flat. Each trade takes the label of the day it was entered.

The bull and the bear market are each judged on their own, and a rule has to pass in both. One that passes in only one of them works in one market only. Flat markets are shown, not required.

5. A bar that rises with every idea tried

In a market, a rule passes when it has at least 10 trades on at least 10 different days, earns more than 0.04R a trade after costs, and has a t-statistic above the luck bar, counted twice: by trade and by day. By day, because trades on the same day share the market's move. The AI's own search turned up one rule that passed counted by trade: 14 bear-market trades on 4 days, t 3.35 by trade and 1.12 by day.

The luck bar is the t-statistic the best of K ideas with no edge at all reaches by chance alone. For a first idea, K is 26 and the bar is 2.01, the familiar t above 2. Past someone's 26th idea, each new one raises their own bar: the 50th is judged at 2.28, the 100th at 2.53. Trying ideas until one passes is exactly what the bar is there to catch. The AI-invented rules in the Casebook came out of a search of 362 rules and are held to 2.95.

The same arithmetic, on your own backtest: is my backtest overfit? and how many trades do I need?

6. The control: the same plan on random dates

Every trade the rule took on the laggards, or 2,000 of them drawn at random when it took more, is placed again on a random day of the same stock, in the same kind of market: the same side, the same stop and target distances as a share of the price, the same exits and the same costs. That is done 20 times. A market passes only if the rule's average beats the 95th percentile of those random-date averages there.

It catches a positive average the timing didn't earn. A long rule on stocks that drifted up collects the drift; a stop far from its target collects the geometry. Random dates with the same plan collect both, so only the timing is left to judge.

7. The verdicts, in the order they are tested

  1. Too rare to judgeFewer than 30 trades on the laggards in 15 years: nothing to judge.
  2. Survivorship mirageOn today's winners it clears the bar in a market; on the laggards no market passes: hindsight picked its stocks.
  3. Killed by costsMore than 0.04R a trade before costs, 0.04R or less after them.
  4. Loses moneyZero or less a trade after costs on the laggards.
  5. Indistinguishable from luckPositive after costs, but neither the bull nor the bear market passes.
  6. Works in one market onlyThe bull market or the bear market passes, not both.
  7. Survives honest checksBoth pass. A reason to paper-trade it before trusting it, not proof it will work.

The best verdict means the rule survived these checks on this history. It is not a forecast and not a reason to trade; it is a reason to paper-trade the rule forward and see.

What it can't see

  • Anything beyond daily prices: earnings, news, fundamentals, options or moves within a day.
  • Entries other than the close of the signal day. A rule asking for a limit below the close or a stop-entry above it has those trades dropped and counted, never scored.
  • Borrow fees on short sales: shorts pay the spread like longs, nothing more.
  • The whole market: 42 large US stocks, so a rule built for small caps is tested where it wasn't meant to work.
  • The future. A backtest is a hypothetical record of the past, not a trading record.

The Casebook

Each classic in the Casebook was coded once by the same AI writer from its common description and judged as one public idea, at K = 26. A written note under a verdict is kept only when every number in it appears in that idea's own evidence and nothing in it gives direction.

The report counts how they failed; the CSV holds every verdict; the Casebook has each strategy's own page; and the Gauntlet runs your own idea through the same steps.

New tests, as they're run

Killed-edge autopsies and the rare rule that clears every check. Occasional, no hype.

Occasional, no spam. Unsubscribe any time. An analytics tool, not investment advice.

Hypothetical backtests of rules as written, on past prices. Research only, not investment advice.