Backtesting Trading Strategies Does Not Work: John Ehlers on Robustness

“Backtesting trading strategies does not work.” That’s the opening line of a white paper published by John Ehlers, a retired electrical engineer who has spent decades applying digital signal processing to financial markets. It’s a provocative statement from someone who has built sophisticated technical systems for his own trading. But the claim isn’t that backtesting is useless — it’s that the way most traders do it guarantees misleading results.

Ehlers is best known for his work on cycles, digital signal processing (DSP) indicators, and adaptive technical analysis. He’s the creator of MESA (Maximum Entropy Spectrum Analysis) applied to trading and has published extensively on signal processing techniques for systematic traders. In this episode he covers why backtest results fail to hold up out of sample, how to use genetic optimization as a robustness tool rather than a curve-fitting mechanism, and the critical differences between intraday and daily data that most traders overlook.

Watch the full episode below, then read on for the complete breakdown.

What “backtesting does not work” actually means

The claim is specific. When you optimise a strategy, the platform is selecting one parameter combination out of potentially hundreds of thousands or millions. That one combination is the best result from a distribution of possible outcomes. The probability distribution of results is shaped like a bell curve around the profit axis, and you’ve found the tail of it. When you trade that strategy live, you are statistically likely to get a result much closer to the average of that distribution — substantially below the backtest peak.

Ehlers points to platforms like Collective2 as a real-world demonstration. Look at the in-sample history of strategies before they were released and compare it to what happened after. The pattern is consistent: strategies that looked excellent on historical data frequently fall apart immediately once they’re trading real money in real-time data.

This is not a random phenomenon. It is the predictable consequence of selecting a single best result from an enormous optimisation space and then expecting that result to repeat.

Genetic optimisation as a robustness test

Most traders use genetic optimisation to find the best parameter combination. Ehlers uses it differently: as a tool to test whether the strategy is fundamentally robust before picking any specific parameters.

The observation that inspired the method: when he watched a genetic optimiser working through parameter combinations, good strategies would reach their final solution almost immediately. Poor strategies would take a long time to converge. This led to the insight that rapid convergence signals a broad, stable probability distribution — many different parameter combinations produce similar good results. Slow convergence signals a sharp peak in the distribution: only a narrow set of parameters produces the good result, and anything outside that window performs poorly.

The practical test: run the genetic optimiser with a large parameter space. Sort all the tested combinations by net profit. Look at the 50th percentile result and compare it to the maximum. A robust strategy has a 50th percentile result that is still solidly profitable relative to the peak. A curve-fitted strategy will have a sharp peak at the top that collapses to zero or negative territory by the median result.

This ratio — the 50th percentile profit relative to the peak — is his primary figure of merit for a strategy before he even considers walk-forward testing.

How to select parameter ranges for walk-forward testing

The same genetic optimisation result that tests robustness also tells you which parameter ranges to use in walk-forward testing. When you sort the optimisation results by net profit, you can see how each parameter varies as a function of that profit. The parameters that concentrate in specific ranges in the high-performing combinations give you the range to use in your walk-forward validation — not a single value, but a sensible range that the backtest supports.

One critical instruction: do not use genetic optimisation during the walk-forward test itself. Genetic optimisers skip parameter combinations and may miss parameter values that are crucial in specific market periods. Walk-forward requires exhaustive testing across a defined parameter range, which limits how wide that range can be. The genetic optimisation output informs what that range should be.

Walk-forward testing in practice: Ehlers’ specific approach

For intraday data, Ehlers uses two months of in-sample data and walks forward one week at a time. The two-month window gives him roughly 40 trades if the strategy is trading approximately once per day — enough to get a reliable read on the average optimal parameters without over-fitting to a specific period.

The one-week step is short, which surprises many traders who use much longer out-of-sample periods. His reason: intraday market conditions change quickly, as the shift from the calm trending conditions of 2017 to the volatile environment of 2018 demonstrates. Staying close to current conditions matters more on intraday timeframes than on daily timeframes, where slower changes in market character can tolerate longer re-optimisation cycles.

His assessment metric is simple: the out-of-sample equity curve should broadly resemble the in-sample equity curve, with some allowance for degradation. Nothing else. If the out-of-sample equity curve looks fundamentally different — steeper drawdown, flat or declining — the strategy is not robust enough to trade live.

Intraday vs daily: fundamentally different problems

Ehlers has traded daily markets for years and found it relatively straightforward to get out-of-sample results that match in-sample performance. Intraday is a different problem entirely.

The key difference is that intraday data is non-stationary to a greater degree. On daily charts, he identified a persistent roughly 20-bar cycle corresponding to the monthly business calendar — companies manage their numbers on a monthly basis, creating a real structural cycle. On intraday charts, there is no such persistent structural cycle to exploit. The trading has to be more agile.

Instead of waiting for a known cycle to complete and then entering on the reversion, intraday systems need to switch rapidly between two modes: cycle mode (mean reversion when prices are oscillating) and trend mode (momentum when a directional move has started and the cycle has stopped). Detecting the transition between these modes quickly — using low-lag indicators — is the core technical challenge of intraday systematic trading.

Thinking in the frequency domain, not the time domain

Ehlers’ deeper point is that most traders analyse price in the time domain — watching lines move across a chart. His framework is rooted in signal processing, which analyses data in the frequency domain: looking at what cycles are present, how they’re interacting, and what their phase is doing.

The practical consequence for indicators: instead of measuring the level of an indicator, look at its rate of change of phase. When phase is changing from bar to bar, you’re in a cycle. When phase stops moving and holds steady, the cycle has ended and a trend has begun. This phase-based switching logic is the foundation of his market regime indicator, which transitions between cycle-mode trading and momentum-mode trading based on whether the dominant market cycle is active or dormant.

Practical limits on trading frequency

Ehlers deliberately designs his intraday systems to trade approximately once per day. More frequent trading tends to produce over-trading — signals that are noise rather than edge — and the additional commissions consume a disproportionate fraction of any gains. His target is enough activity to keep the system active and to get a reasonable number of data points for parameter re-optimisation, without the cost drag that comes from systems firing multiple times daily on short-term noise.

Related episodes

Get the transcripts

Interviews with Pro Traders eBooks

Want more interviews like this one? The Interviews with Pro Traders eBooks have the full transcripts of the first 100 Better System Trader episodes.

Get the eBooks →

Want to build more robust systematic trading strategies? Browse more Better System Trader interviews with the world’s top systematic traders and quantitative researchers.

The Strategy Starter PlaybookBreakout Trading PlaybookThe Strategy Starter PlaybookThe Mr. Breakouts Formula plus 11 example breakout strategies with full logic and code.Get the playbook →
Scroll to Top