Documentation menu

How it works

Methodology

CrashTestYourStrategy runs a trading strategy — or a whole portfolio — through a wide range of market scenarios and reports how its behaviour holds up: where it stays robust and where it degrades.

It is a model-based scenario simulation, and one boundary defines everything below: it is descriptive, not predictive. It does not forecast returns or tell you whether a strategy is "good". It shows how a strategy behaves under defined conditions — historical and hypothetical — so you can see its failure modes before a real market does. This page explains the concepts; the full detail and its limits are in the technical reference.

How we generate markets — a regime-switching simulator

Most stress tests either replay history or shuffle random noise. We do neither. Our scenarios come from a regime-switching stochastic-volatility simulator. A market moves through a small set of regimes — a calm uptrend, a directionless range, a grinding bear, an acute crisis — and each regime imposes a characteristic drift and volatility level. The path is not locked to one regime: it transitions between them along a matrix estimated from decades of real index history, so the sequence of calm and stressed stretches matches how real markets actually alternate.

Crucially, volatility carries its own memory — a turbulent day raises the odds the next day is turbulent too. That is why large moves arrive in clusters rather than spread evenly, and it is the single most universal feature of real returns. How far a simulated path carries the character of its own instrument depends on which part of the site produced it, and the paragraph below this section states that.

When several assets are simulated together for a portfolio, a shared stress factor couples them. In ordinary conditions their correlations stay loose; in a crisis they strengthen the way real ones do — so a stock-bond hedge that holds in calm markets can break when both legs fall together, exactly the failure a portfolio stress test exists to surface.

What is calibrated per asset, and what is not

This is a real limit. Three things on this site are built differently. Real prices: the historical windows. Fitted to each asset’s own history: the portfolio substrate (SPY, TLT, gold, Bitcoin) and the paths tier2_stress_test builds for a ticker. Rescaled, not fitted: the library of 32 synthetic probes behind every /s/ report, the Strategy Lab, run_stress_test and challenge_strategy. It generates every asset’s stress window on S&P 500 regime parameters, then rescales its volatility to the asset’s own range, which changes the scale and nothing else. Ethereum’s whipsaw probe failed that check and is not rescaled, and gold’s hyperinflation probe has no S&P 500 sibling to scale from. For example, the low-volatility probe now runs at SPY 0.10, QQQ 0.13, gold 0.10 and oil 0.20, against oil’s typical 0.32. So a synthetic result carries the asset’s scale and not its own character, and it can understate losses. The eighteen stylized facts on /verifiability measure the portfolio substrate, not this library. For this library, the published checks are the clustering gate and the per-probe claims, of which 4 of 50 are off-spec.

Matching real market behaviour — stylized facts

Real markets share statistical regularities that hold across assets and decades, independent of any single crisis: volatility clusters; large drops are more common than equally large jumps; extreme moves happen far more often than a bell curve predicts; and volatility tends to rise as prices fall (Cont, 2001). These regularities arise from market structure — they would apply to a future crisis we haven't seen as much as to past ones. A stress scenario is only meaningful if it reproduces them. The portfolio substrate is measured against each asset's real history, fact by fact, on the verifiability page. Those eighteen facts do not cover the library of synthetic probes behind the strategy reports.

The one hard gate: volatility clustering

Among these regularities, one is decisive and is enforced as a hard requirement: volatility clustering — the tendency of large moves to follow large moves, and of calm to follow calm. It is the most robust and universal property of financial returns (Cont, 2001), and its presence is what separates a market from random noise. A scenario whose volatility does not cluster — or clusters inversely — is not a demanding market but an artifact; a strategy evaluated against it would be tuned to exploit behaviour no real market exhibits. Every synthetic scenario published here must therefore show positive volatility clustering. Scenarios that do not are not published. That is the whole of the gate: above zero. How the measured level compares with the asset's historical level is reported, not enforced.

The remaining properties — and how strongly each scenario expresses the failure mode it is named for — are reported as descriptive character, shown per scenario in the technical reference, rather than enforced as gates. So "gate-cleared" means this one test passed. It does not mean a scenario is realistic in other respects. Where reproducing realistic clustering and maximising a particular failure-mode intensity pull in different directions, clustering takes precedence: a price path a strategy genuinely responds to is worth more than one that fits a label more neatly.

How the backtest works

Your strategy is run over each scenario by its own rules: signals fire, positions open and close at the next bar, and every fill pays 0.1% commission and 0.05% slippage. Active strategies commit 95% of the account to a position; buy-and-hold holds all of it. An order the cash cannot cover at the next open is reduced to what the cash buys, not dropped. A stop fills at its level, or at the open when the price opens beyond it. The synthetic cases have almost no overnight gaps, so there a stop nearly always fills at its level. On real history the losing trades of RSI 30/70 with a 5% stop averaged -5.7% on SPY and -6.1% on NVDA. When a stop closes a position and the entry rule still holds at that bar's close, the strategy enters again at the next open, as it would after any other exit. Reports, per-case tables and runs in the Strategy Lab all use these settings. Where a single price bar is ambiguous — its high and low could be reached in either order within the bar — the engine resolves it with a documented, conservative rule (following Löw, Maier-Paape & Platen, 2015) rather than assuming the favourable order. The output is a behaviour record per scenario, not a single optimistic number.

Two kinds of scenario: empirical + synthetic

The catalog of 63 cases combines 31 real historical episodes — empirical anchors like Lehman 2008, the Dotcom unwind, COVID March 2020, the 2022 crypto deleveraging — with 32 simulator-generated synthetic stress probes for stress types that are rare or absent in a given asset's record (sustained slow declines, volatility expansions, whipsaw regimes, liquidity stress). History tells you how a strategy did in the crises that occurred; synthetic probes let you ask what would happen under conditions that haven't occurred yet — which backtesting alone cannot give you. A strategy runs only on the cases of its own asset, 5 to 15 of them. Each run counts once, so a synthetic probe with 50 runs weighs fifty times as much as a historical window with one.

What the robustness score means — and what it doesn't

The score summarises how consistently a strategy holds up across the scenario catalog: smaller drawdowns, fewer regime-dependent breakdowns, and more stable behaviour score higher. Steady losses do not count as consistency, and a bucket in which a strategy never trades scores as neutral. A strategy that does not trade in most scenarios can still score well, because it stays out of the market; such reports say so. Pages show the score and the worst-case drawdown as numbers, without a word for what they mean. What it is not: a forecast of future returns, a buy/sell signal, a ranking against other strategies, or advice. A high score means a strategy degraded less across these defined scenarios — it does not mean it will be profitable, suitable for you, or safe in the next real crisis. Whether a difference in score between two strategies carries over to real markets has not been shown. The score is a lens on how a strategy degrades, nothing more.

The failure-mode taxonomy

Every scenario is tagged with one or more failure-mode axes — the controlled vocabulary the platform uses to describe how a strategy degrades (V-Recovery is treated as a diagnostic path-pattern, leaving nine score buckets). Each axis has its own citation-ready definition.

Plausibility of the synthetic market data

Three separate checks are published. None of them alone makes a scenario realistic:

  • gate-clearedthe scenario's volatility clusters (above zero). All 32 synthetic regimes pass, including those with the errors listed last here.
  • per-probe claimsmeasured drawdown, volatility and similar properties against what the probe claims to be: 4 of 50 claims are off-spec.
  • real-episode testin a preregistered test, buy-and-hold drawdowns were closer to real episodes of the same type than to randomly paired ones. Errors differ by family: slow_crash_no_recovery falls 3 to 12 points further than real slow declines, and oil's demand_destruction falls 14 to 18 points less than real ones. For active strategies the question stays undetermined.

The full results, per-scenario character, reference bands, and documented limits live in the technical reference and the verifiability page — including where the method stops being reliable.

Operated under German jurisdiction (BaFin / WpHG framework). Model-based scenario simulation — descriptive, not advisory; scenario-based, not a forecast. Not investment advice.