Backtests: data and assumptions

The Backtest card shows how $10,000 would have grown if you had followed the strategy's confirmed allocations in the past. This page explains how that simulation works: the assumptions it makes, where its price history comes from, and the comparisons you can add.

What the chart shows

  • The curve is the value of $10,000 invested at the start of the range you picked. Change the range with the calendar button: pick a preset (1w up to Max, including YTD for the year to date) or type a From and/or To date as dd-mm-yyyy (or pick each from its calendar button) and press Apply. Dashes are inserted while typing. One side alone is enough: From alone runs to the end of the data, To alone starts at its beginning. You can also drag on the chart to zoom. On a touch screen, tap the start date on the chart (a dashed line marks it), then tap the end date, and the chart zooms to that range. Tapping outside the plot, double-clicking or changing the range another way cancels a start date you set. Double-click resets the zoom.

  • Drag and hold to see the figures for just the period you selected: how many dollars each line gained or lost, and in brackets the return over that period.

  • Linear | Log: on a log scale, equal percentage moves look equally tall, which makes long histories easier to read.

  • The statistics table compares the strategy with whatever you have switched on:

    • CAGR: the average yearly growth rate. 10% means the money grew as if by 10% every year.
    • Max drawdown: the largest fall from a peak to a later low. -30% means that at the worst point you were down 30% from the previous high.
    • Sharpe: return per unit of ups and downs, from daily returns, scaled to a year. Higher is smoother. It does not subtract a cash rate, so it is a little higher than the textbook figure.
    • Sortino: like Sharpe, but only the down days count as risk.
    • Total return: the growth over the shown range, end value over start value minus one.
    • Volatility: how much the daily returns swing, as the standard deviation of daily returns scaled to a year.
    • Ulcer Index: the root mean square of the percentage fall from the running peak, over every day of the range. A deep or long drawdown raises it, so it says more about how much a drawdown hurt than Max drawdown alone.
    • Longest drawdown: the longest stretch between a peak and the day the curve reached that level again. A stretch still open at the end of the range counts up to the last day.
    • Calmar: CAGR divided by Max drawdown, the return per unit of worst loss.
    • Positive years: how many full calendar years inside the shown range ended with a gain, for example "9 of 12". A partial first or last year does not count, and a range with no full year shows a dash.
    • Beta: how much the series moves per 1% move of the series picked in vs, from daily returns over the shown range. 1.00 moves one for one, below 1 moves less, negative moves the other way. A beta well below 1 with a high return means the strategy is doing something other than owning the market.
    • Correlation: how closely the daily returns move with the vs series, from -1 (opposite) to 1 (in step). Near 0 means they are unrelated.

    Beta and Correlation appear in Benchmarks mode only (and in the Preview on the create page). The series you compare against shows a dash, never 1.00 against itself, and everything shows a dash when vs is None.

    Every row has an info icon with a one-sentence definition. All rows follow the range you picked, and show a dash where a number is not defined, for example on a very short range or when there was no drawdown at all. The same rows, except Beta and Correlation, appear in Timing mode, which has no market Benchmark to compare with.

  • Trading rows: in Benchmarks mode (and in the Preview on the create page) the table ends with a quiet "Trading" divider and three rows on how actively each series trades. They have a column per series, like every other row, and follow the range you picked:

    • Switches per year: how many times a year the target weights changed. Any change counts, including a reweight of the same tickers. This is the rule the daily email uses, so it is also about how many emails a year to expect. A fixed mix that is rebalanced back to its weights, or a buy-and-hold series like SPY, shows 0.
    • Average hold: the range in whole months divided by the holds the switches cut it into. A dash when the weights never changed.
    • Turnover per year: the value traded each year as a share of the portfolio, counting one side of each trade. It includes the trades that only undo price drift, so a rebalanced mix shows turnover even though it never switches. The first purchase is not counted.

    A strategy or compared series computed before these figures were recorded shows the note "Trading figures appear after the next daily update" in its column instead of values. The daily update fills them in. Timing mode has no Trading rows.

Calendar year bars

Under the equity chart, one bar per calendar year of the shown range, green for a gain and red for a loss. Hover a bar to see that year's return and max drawdown (and the comparison's, with the edge, when a series is picked in vs).

  • Follow the range: pick a preset, type dates or drag on the chart, and the bars redraw for the years that range touches.
  • Hover highlight: hovering a bar shades that year on the equity chart, the same way hovering the Edge, rolling strip shades its window. Dragging across bars shades the whole span, and moving off the bars clears it. A partly covered year shades only the part the data covers.
  • Partial years: a first or last year that the range covers only in part is hatched and listed below the bars with the part it covers (for example "2019 covers Mar 15-Dec"). Its figure is the return over that part only. Every other year is measured from the previous year-end, so the first trading day counts.
  • Ticks: with a series picked in vs, each bar has a tick at that series' return over the same stretch. With None the ticks disappear and the bars stay.
  • Pick years: click a bar to set the range to that calendar year, and every figure on the page follows. Drag across bars, or shift-click another bar, to pick a span of whole years. On a touch screen tap a year, then tap another to extend the selection. A first or last year the data only partly covers selects just the covered part. Months cannot be picked from the bars. Bars can be focused with the keyboard: Enter picks a year, Shift+Enter extends. The pick is shared by Benchmarks and Timing mode, so switching modes keeps every bar and the year you picked.
  • Back again: click the only selected year once more to return to the range you had before picking. While years are picked the bars keep the years of that earlier range, dim the others and stay visible, so you can change the selection or go back.
  • Short ranges: under 12 months the bars are replaced by a short note, unless the range came from picking bars.
  • Long histories: a bar is never narrower than 14 pixels. On a narrow screen a long history scrolls sideways inside the strip, opening on the most recent years.

The same bars and the Positive years row appear in the Preview on the create page.

Assumptions

The backtest is a simplified version of real trading:

  • Trades happen at the month-end close. The new allocation is bought at the closing prices of the last trading day of the month. In reality you only learn the signal after that close and trade on the next trading day, so your prices will differ.
  • No costs. No commissions, bid-ask spreads, taxes or slippage are deducted.
  • Dividends are reinvested. All prices are adjusted closes, which include dividends and splits.
  • Holdings drift between rebalances. At each month-end the portfolio is reset to the target weights. In between, each holding rises and falls with its own price.
  • Cash is a ticker. When a strategy goes to cash it holds BIL, a fund of 1 to 3 month US Treasury bills, so cash earns the T-bill yield. Weight that is not invested at all earns nothing.
  • Full history. The backtest is always computed from the first date the data allows. Picking a shorter range only changes what is shown, not the rules.
  • Trades are counted, not charged. The Trading rows show switches and turnover per year. Each trade is a sale and a purchase in real life, with costs and possibly taxes the backtest leaves out.

Synthetic history

Most ETFs are younger than the backtests. To test over several decades, the price history of many tickers was extended back before the fund existed, using the index or a similar fund it tracks. The backtest treats that reconstructed part like real prices.

  • Leveraged funds (SSO, UPRO, TQQQ, UWM, UGL, URE, EFO and others) mostly launched between 2006 and 2010. Before that, their prices were simulated by applying the 2× or 3× multiple to the daily returns of the underlying index, then joined to the real fund at its launch. A simulation like this captures the daily reset of a leveraged fund, but the real fund also pays fees and financing costs, so treat the early years as an optimistic estimate. QLD before 2006 uses a simulation that does include estimated fees and financing costs.
  • Regular ETFs were extended the same way, for example QQQ before 1999, VEA before 2001, VNQ before 2004, VWO before 2005, VT and ACWX before 2008 and ZROZ before 2009. AVUV and AVDV before 2019 use older small-cap value mutual funds as a stand-in.

That is why some backtests start in the 1970s or 1980s although the funds they hold are much younger. The charts do not mark where the reconstructed part ends yet. If you want to judge a strategy on real fund prices only, set the range to start after the youngest fund it holds was launched.

Leveraged funds

Leverage in a strategy means holding leveraged funds, such as SSO (2× S&P 500) or UPRO (3× S&P 500). Some built-in strategies hold them by design (HAA Boost, SPY Momentum Offense, Dual Momentum Offense and the tutorial strategy). In a strategy you build yourself, name the funds you want (see step 5 of the tutorial). The emails then show exactly those funds.

  • 2× is not twice the return. A 2× fund doubles each daily move. Over weeks of up-and-down markets this loses value even when the index ends flat (volatility decay), and in a crash the drawdown is roughly twice as deep.
  • Signals and holdings can differ. A strategy can measure momentum on the regular fund (SPY) and put the money into the leveraged one (SSO). The decision rules on the page say which funds it measures and which it holds.
  • Compare like with like. A leveraged strategy against a 1× SPY looks better than it is. For a fairer comparison, switch on SSO/GLD/ZROZ, which itself holds a 2× fund.
  • Most leveraged funds are young. Their early history is simulated, see Synthetic history.

Benchmarks

Fixed reference portfolios to compare against. They are not strategies and never change their mix.

  • SPY: 100% S&P 500, bought and held.
  • VT: 100% global stocks, bought and held.
  • 60/40: 60% SPY and 40% AGG (US bonds), rebalanced monthly.
  • SSO/GLD/ZROZ: 50% SSO (2× S&P 500), 25% gold and 25% long zero-coupon Treasuries, rebalanced monthly.

Comparing with another strategy

+ Strategy overlays another strategy's backtest on the same chart: any built-in, plus your own strategies and the public ones you follow. You can add up to 3. When you refine your own strategy, its last saved version is added for you, so you can see whether the change is an improvement.

Rolling edge

The strip under the chart, labelled Edge, rolling, answers "was the strategy ahead over the last few years, at every point in time?". For each date it takes the strategy's CAGR over the window ending that day, minus the comparison's CAGR over the same window.

  • 1Y, 3Y, 5Y pick the window length. vs (the selector under the card's title, shared by Benchmarks and Timing mode) picks what to compare with: a Benchmark, a strategy you picked, or None. With None the strip is replaced by a hint to pick a comparison.
  • Above zero: the strategy was ahead over that window. "now −7.4%" means that over the latest window, the strategy grew 7.4 percentage points a year slower than the comparison.
  • Hover the strip to shade the window on the chart above.
  • The line under the strip says, for holds of the chosen length started on any day inside the visible range, what share ended positive and what share beat the comparison, for example "62% ended positive, 48% beat SPY". It follows the window picker, the range and the vs choice. If the range is shorter than the window, it shows a dash. The windows overlap, so they are not independent samples: ten years of data does not give thousands of separate results.

Timing Check

Switch the card from Benchmarks to Timing to ask a different question: does the strategy's switching add anything, compared with just holding the same assets without timing?

It compares the strategy with two baselines, both made of the strategy's own assets and rebalanced on its own dates:

  • Average holdings: each asset at the share it had on average over the whole backtest (its weight times how long it was held). Same assets, no timing. It is built with hindsight, since those averages are only known afterwards.
  • Equal weight: every asset the strategy can hold, at the same weight. It answers "would I have done better just buying all of them?".

The sentence at the top, such as "Timing added +10.9% a year", is the strategy's CAGR minus the average-holdings CAGR. It describes what happened, not how likely it is to happen again: it is not a statistical test, and the strategy can still have lost a lot in absolute terms. Read it together with the drawdown figures.

Sleeves split the strategy into its parts, such as the offensive and defensive pools, so you can see which part the timing helped. The sleeve figures do not add up to the overall one: they measure picking within each sleeve, while the overall figure also includes moving money between sleeves, such as switching from stocks to bonds. The table shows, per sleeve, how long it held part of the portfolio (Active) and how it did against its own average holdings. Four more columns describe how the sleeve behaved while it was on: Volatility is the annualized standard deviation of its daily returns while active. An activation is an unbroken stretch of rebalances in which the sleeve held part of the portfolio, so changing its weight inside a stretch does not start a new one. Activations counts them, Per year divides that by the years in the backtest, and Win rate is the share of activations that ended positive, measured from switching on to switching off. Under a divider, the Complete strategy row gives the whole strategy's time active, return and volatility measured the same way, with dashes for the activation columns because the strategy as a whole is never switched off. Grouping says where the sleeves come from: the strategy's code, the owner's saved grouping, or your own edit. Edit grouping lets you regroup the tickers for your own view. Only the owner can save a grouping.