Pattern Proof

Blog

How to backtest a chart pattern strategy (and quantify its edge)

2026-11-08 · 3 min read

A backtest answers one question: if I had followed these exact rules in the past, what would have happened? It's the closest thing traders have to evidence. It's also easy to get wrong. Here is how we approach it at Pattern Proof, so you can test your own ideas.

Step 1: Turn the pattern into rules a computer could follow

Every part has to be precise:

If any part needs judgment ("looks like a good handle"), you'll end up testing your mood rather than the pattern.

Step 2: Choose the data

Step 3: Run the rules bar by bar, without peeking

The most common backtest bug is look-ahead bias: using information that wasn't available yet, like entering at a day's close based on that same day's high that hadn't happened at the moment of decision, or knowing which stocks would still exist years later. Process each day in order and only use data up to that day.

Step 4: Measure the right things

MetricWhat it tells you
Number of tradesHow much to trust everything else. Be wary below about 200.
Win rateHow often trades made money. Meaningless on its own.
Average RAverage result per trade in units of risk: the core measure of edge.
Profit factorGross gains ÷ gross losses. Above 1.0 means gains outweighed losses.
Average holdHow long your money is tied up, and how much overnight risk you carry.
Worst losing streakWhat you'll have to sit through emotionally.

Quantifying the edge: average R is your expectancy. If a pattern averages +0.10R and you risk $100 per trade, you'd expect roughly +$10 per trade over many trades, before costs. Multiply by trades per year to see whether it's worth the effort.

Step 5: Compare against a baseline

A pattern that "wins" 45% of the time might be doing no better than random entries in a rising market. Compare your results against simple alternatives, such as entering on random days with the same stop and exit, or just holding the stocks. An edge only counts if it beats doing nothing special.

Step 6: Check it isn't luck or overfitting

Step 7: Add costs and realism

Commissions, the bid-ask spread and slippage all reduce results, and they hurt short-term patterns most. Our published numbers exclude them, so treat any edge under about +0.05R as fragile.

The known limitations of our own numbers

We're upfront about these: Pattern Proof's backtests use end-of-day data, exclude costs, and run on today's large-cap stocks, so they carry survivorship bias (companies that collapsed or were removed from the list aren't included). That tends to flatter long setups.

Don't want to build it yourself? Pattern Proof publishes these metrics for 29 patterns, and each setup within them. Browse the patterns.

Educational research, not financial advice.

See every pattern's numbers yourself

Pattern Proof backtests 29 chart patterns on 5 years of daily data and scans for new setups every night after the close. Free to browse.

Browse the 29 patterns