Contents Lesson 12 of 19

10 min read · professional

Survivorship, and the companies that are not in your list

By the end of this lesson you will have your own count of live and delisted US common stocks beside the table below, the endings of five delisted companies read from their own bars, and the universe written into PLAN.md as an assumption — for a backtest on one index fund, a short paragraph.

Build a Screener said a screener cannot ask what would have happened, because it works on today's constituents. This lesson puts a number on that, and the number is larger than almost anyone expects.

Count the dead

Two requests to the same endpoint today, one with delisted=1:

US universe, 2026-08-25 Common stocks
Live 18,012
Delisted 32,854

The delisted outnumber the living by roughly 1.8 to 1.

A backtest run on "the US stocks I can list today" silently excludes 32,854 companies. Not a rounding error, not a tail — the majority of everything that ever traded. And the excluded set is not random: it is disproportionately the failures, the bankruptcies, and the ones that fell far enough to be delisted.

Why this makes bad rules look good

Every company in your universe is one that made it to today. So the backtest quietly assumes that whatever you bought, it survived. "Buy the biggest drawdowns and hold" looks superb on survivors, because survivors are by construction the names whose drawdowns did not end in a delisting. Not that every one recovered — Cisco closed at 144.38 in March 2000 and was still near 109 in September 2026, twenty-six years later on price — but none of them went to zero. Run it on the full set and the trades that went to zero come back, and they were always the majority of that strategy's exposure.

The bias is strongest exactly where beginners look: deep value, mean reversion, buying weakness. Those strategies are, structurally, bets on recovery — and a survivor universe has pre-selected for recovery.

What you can actually do about it

The full fix — a point-in-time universe, reconstructing membership as it was on each date — is real work and beyond this course. Three things that are not:

Include the delisted set. The list is one request away. Your backtest can at least run over live-plus-delisted rather than live-only, and comparing the two results is the honest experiment.

Report the universe as an assumption. "Ran on 18,012 live US common stocks as of 2026-08-25; excludes 32,854 delisted" belongs in the report, beside the parameters. A reader can then judge the result rather than trust it.

Prefer single-instrument or index-level tests while learning. A backtest on SPY has no survivorship problem worth the name; a cross-sectional stock-picking backtest is riddled with it. Know which one you are running.

The same bias in a different costume

Two relatives worth naming, because they come from the same habit of using today's list:

  • Index reconstitution. Backtesting "the S&P 500" using today's members means holding companies that were added after they had already performed well. The index is rebalanced towards winners, and using today's membership backdates that.
  • Ticker reuse. A symbol freed by a delisting gets assigned to a different company later. Stitch the price history by ticker and you have concatenated two unrelated businesses into one series.

The finance behind it

Where the delisted tickers live as data: Where do you find the tickers that no longer exist?

Try it now

The delisted list is the Build a Screener universe request with one parameter more: /exchange-symbol-list/US?delisted=1&type=common_stock through your proxy. Its first rows today:

Show the API answer
Live API response: qp2 us delisted common head

Count the whole list and set your number beside the table above; that table is dated 2026-08-25, and on 28 September 2026 the same request returned 33,112 rows. Then pick five delisted tickers and read their last year of prices. Here is what one death certificate looks like, SVB Financial Group, first under its NASDAQ code:

Show the API answer
Live API response: qp2 sivb last bars

and then under the code it traded as afterwards, with the same ISIN:

Show the API answer
Live API response: qp2 sivbq first trades

A backtest that knows only SIVB marks the position at 106.04 and stops. The first session with any volume under SIVBQ, 28 March 2023, closed at 0.40. Look for the same two things in your five: where the series ends, and whether the company went on trading under another code. Reading five real death certificates does more for your judgement than any explanation of the bias, and it takes ten minutes.

The prompt

This is the first lesson in the course that spends calls on purpose, so mock mode goes off and the price is named first. Plan mode on:

Plan first and wait for my yes. Before any request, tell me what each
one costs with estimateCalls() and the total. Through my proxy at
localhost:3000, count the US common stocks in the exchange symbol
list, live and then with delisted=1. Pick five delisted tickers from
different years (on a free key, only ones delisted within the past year), fetch each one's daily history through the proxy, and
for each tell me the date of its last bar and whether a code with the
same ISIN appears in either list. If a history comes back empty or
refused, say so and pick another. Change no code. Write the two counts
with today's date, one line per ticker, and a sentence on what this
means for a backtest on SPY into a new "Universe (backtest)" section in
PLAN.md (the screener course left a Universe section there; leave it as
it is), then show me the diff. If any request answers 403 or 402,
make no further request and write the section from these figures
instead, saying they are a lesson's and not mine: US common stocks on
2026-08-25, 18,012 live and 32,854 delisted; SIVB, SVB Financial
Group, last bar 106.04, then traded as SIVBQ with the same ISIN,
whose first session with volume, 28 March 2023, closed at 0.40.

A good answer prices it before the first request — two lists and five histories at one call each, seven in all — waits for your yes, and changes only PLAN.md. This step needs your own key: the shared demo key answers 403 on all of it. The symbol lists, delisted included, are on every plan, the free one too, but a free key returns only the past year of prices, so a company delisted before that comes back with an empty history. On a free key, do the two counts, pick tickers whose last bar falls inside the past year, and write any you could not reach as such. If a request is refused, the agent stops at the first 403 and writes the section from the lesson's figures, marked as the lesson's.

Check it yourself

  1. The agent named seven calls before it spent one, and the meter moved by seven. Any replacement ticker costs one more, and it should have said so.
  2. Your two counts sit in PLAN.md with today's date. Set them against the table in this lesson; a delisted list a few hundred names longer for every month since is normal.
  3. For each of your five you know where the series ends and whether the company went on trading under another code, as SVB did. A history your plan could not reach is written down as such, not skipped.
  4. The Universe (backtest) section ends with one sentence about your own backtest: on one index fund survivorship is not the problem, and on a list of stocks it would be.
  5. git status shows PLAN.md and nothing else.

Compare with ours

Our Universe section

Under the heading "Universe (backtest)" in PLAN.md:

One instrument, SPY, an index fund: no survivorship problem worth the name.
A stock-picking run on today's list would not be so lucky. US common stocks
on 2026-08-25: 18,012 live and 32,854 delisted, and a survivor-only
backtest silently drops every one of the 32,854.

Then one line per delisted ticker: its last bar, and the code it moved to if it moved. The full state at the end of this unit is on the starter's branch ref/backtest-strategies/u3.

The reference backtest page at the end of unit 3, on invented fixture prices

Checkpoint

git status   # PLAN.md, nothing else
git add PLAN.md
git commit -m "Survivorship in my own numbers, and the universe written down as an assumption"

Put mock mode back on. Then answer this lesson's questions.