Running your own backtest

Give the backtester tickers and weights and it returns the record against the S&P 500. What to enter, what you get back and the bias you bring with you.

On this page5 sections
  1. 1What you enter
  2. 2What you get back
  3. 3When the test starts later than you asked
  4. 4The bias you bring
  5. 5Ways to use it honestly

The backtester in the app takes a list of tickers with weights and tells you how that portfolio would have done. It runs on the daily closes we already hold. You can also ask for one in Ask in plain words.

What you enter

FieldMeaning
Tickers and weightsThe portfolio, up to 30 tickers. Weights are scaled to add up to 100%.
RebalanceNever, monthly, quarterly or yearly. Never means buy once and let the weights drift.
Start and endThe period. Leave them empty for the longest history your plan allows.
ComparisonSPY unless you choose another fund.
CostBasis points per trade, 10 by default.

What you get back

  • The curve of your portfolio next to the comparison.
  • Total return, CAGR, volatility, Sharpe and max drawdown for both. See How each number is computed.
  • A year-by-year table and how many years you beat the comparison.
  • Each holding's own return and its weight at the end.
  • The caveats that apply to this particular run.

When the test starts later than you asked

If one of your tickers has no price before a certain date, the test starts there, and the result names the ticker that limited it. We do not invent prices for the missing stretch. Drop the ticker to test a longer period.

The bias you bring

You are choosing these tickers today, knowing how they did. That is the strongest bias a backtest can have, and every run on hand-picked tickers carries a caveat saying so.

Why it flatters
  1. Ask most people today for three stocks to test since 2019 and they name three that went up a lot.
  2. A list written in 2019 would have looked different, and some of its names would have failed.
  3. The test is describing your memory of the winners.

Ways to use it honestly

  • Test a portfolio you actually hold, to learn its worst fall and how it compares with simply holding the index.
  • Compare two weightings of the same tickers. The hindsight is the same in both, so the difference means something.
  • Compare rebalancing schedules for the same portfolio.
  • Do not use it to prove that a stock you like was a good idea.

Something here wrong or unclear? Tell us. Informational only, not investment advice.

After hours

That's a wrap.

17hrs23min04sec

Market opens Friday, Nov 13 at 9:30 AM ET