Essay
How to Read a Backtest Without Fooling Yourself
A backtest is the easiest place in all of finance to lie to yourself. Here are the traps, lookahead, survivorship, costs, overfitting, explained with everyday examples.
June 20, 2026
Here's a strange fact about trading: it is genuinely hard to make money, but it is shockingly easy to produce a chart that says you already did. Feed a computer some historical prices, a few rules, and a bit of hope, and out comes a beautiful line going up and to the right. It looks like proof. It usually isn't.
A backtest is just a simulation, "if I had followed this rule over the last ten years, how would it have gone?" It's a useful, necessary tool. It's also the single easiest place in all of finance to fool yourself. So before you trust one (yours or anyone else's), learn the ways they lie.
The backtest is a report card you get to write yourself
Imagine grading your own exam, with the answer key open, in a room with no one watching. You wouldn't even have to mean to cheat. You'd just... nudge. That's a backtest. Nobody is checking your work, the answers are right there in the historical data, and your brain desperately wants the strategy to work.
This is why skepticism isn't optional here. The whole skill of backtesting is not building the test, that's the easy part. It's catching yourself in the act of cheating.
Trap 1: Lookahead (using tomorrow's newspaper)
The most common and most embarrassing mistake: your strategy secretly uses information it couldn't have known at the time.
Picture betting on yesterday's horse races using today's newspaper. Of course you'd win every time. That's not skill; that's time travel.
In real backtests it's sneakier. A few classic ways it sneaks in:
- You buy a stock "based on today's closing price" but you actually place the order before the close is known.
- You use a company's revenue for January in a January trade, but that number wasn't actually published until March.
- You "clean" your data by filling in a gap using values from later in the series.
Each one feels innocent. Each one hands your strategy a peek at the future. And a strategy that can see the future always looks like a genius.
The tell: results that seem too clean, smooth, almost no losing periods, way better than anything real. When a backtest looks flawless, assume it's cheating until proven otherwise.
Trap 2: Survivorship (only interviewing the winners)
Suppose you want to know if "starting a restaurant" is a good idea, so you interview a hundred restaurant owners. They're mostly doing fine! Great news, right? Except you only talked to restaurants that still exist. The ones that failed aren't around to be interviewed. Your sample is quietly rigged toward success.
Stock data has the exact same problem. Many datasets only include companies that are still around today. All the ones that went bankrupt, got delisted, or blew up have vanished. So when you test a strategy on "all these stocks," you're really testing it on the survivors, a group that was, by definition, guaranteed not to die.
Your backtest inherits that optimism. It'll look far safer and more profitable than reality, because reality includes the losers and your data doesn't.
The fix in spirit: ask "does this dataset include the companies that failed?" If it doesn't, treat every rosy result with suspicion.
Trap 3: Ignoring costs (forgetting the meter is running)
Here's a strategy that "works": buy in the morning, sell in the afternoon, every single day, on hundreds of stocks. On paper, the tiny daily gains add up to a fortune.
Now add reality. Every trade costs something:
- Commissions, the broker's cut.
- The spread, you buy a hair above the "fair" price and sell a hair below it. That gap is a cost, every time.
- Slippage, when you actually try to buy, the price moves away from you a little, especially if you're trading a lot.
Individually these are pennies. But a strategy that trades constantly pays that toll thousands of times. A gorgeous backtest can turn into a slow bleed the moment you subtract real costs. Many "winning" strategies are just winning strategies for your broker.
The rule: a backtest that doesn't subtract realistic trading costs isn't a backtest. It's a fantasy. The more often a strategy trades, the more this matters.
Trap 4: Overfitting (tailoring a suit to one photograph)
This is the deep one, and it deserves its own essay (we wrote one, see signal vs noise). Here's the short version.
Say you tweak your strategy: try 20 different settings, keep the one with the best result. Then try 20 more variations of that. Keep the winner again. After enough rounds, you'll have a strategy that fits the past beautifully, and means nothing.
Think of it like tailoring a suit to fit one single photograph of a person, down to the exact wrinkle and pose. It'll look perfect on that photo and absurd on the actual moving human. You didn't capture the person; you captured one frozen instant, including all its random accidents.
The past is one frozen photograph of the market. Torture your rules until they fit it perfectly, and you've captured the accidents, the flukes, the coincidences, not anything that will repeat. The result looks amazing in the test and falls apart the moment real, unseen data shows up.
The tell: a strategy with lots of fiddly settings ("buy when the 37-day average crosses the 111-day average on a Tuesday"). Oddly specific numbers are a red flag. The market doesn't care about your Tuesdays.
Trap 5: The one lucky period
A strategy can look brilliant because it caught one enormous, once-in-a-decade move, the 2008 crash, a single stock that went up 100x, and did nothing the rest of the time. Average that giant windfall across the years and the overall chart looks like steady genius. It wasn't steady, and it may not have been genius. It was one lottery ticket.
Ask: where did the returns actually come from? If almost all of the profit came from one week or one name, you don't have a strategy. You have a story about something that already happened.
A short checklist you can actually use
When you look at any backtest, especially your own, run through these:
- Could it see the future? Any chance a number was used before it was truly available?
- Where are the dead bodies? Does the data include companies/assets that failed?
- Did I pay the tolls? Are realistic costs, spreads, and slippage subtracted?
- How many knobs did I turn? The more settings I tuned, the less I should trust the fit.
- Where did the money come from? One lucky period, or steadily across many different conditions?
- Did I test on data I never touched while building it? (Hold some history back, test on it once, at the end. If you peek and re-tune, it's contaminated.)
None of these require heavy math. They require honesty.
Why this is the whole game
It's tempting to see backtesting as a rubber stamp, build the idea, run the test, get the green light. Flip that around. The backtest's real job is to kill bad ideas before they cost you real money. A good quant runs a backtest hoping to find the flaw, not hoping to confirm the dream. If you can't find the flaw, then you get cautiously interested.
The market will test your strategy for real, with real money, whether you're ready or not. A backtest is your one chance to fail cheaply first. Don't waste it by lying to yourself.
The takeaway: a backtest isn't proof, it's a temptation. The value isn't in producing a pretty upward line; anyone can do that. It's in relentlessly asking how that line is fooling you. Master the five traps here and you'll be ahead of most people who've ever run one.