Indikora
Indikora Blog

How to Backtest a Trading Strategy (Without Fooling Yourself)

Backtesting means running your exact trading rules over historical data to see how they would have performed. Done honestly, it's the cheapest education in trading: it kills bad ideas for free, before the market charges tuition. Done carelessly, it's a machine for manufacturing false confidence - and the difference between the two is not software, it's discipline about a handful of traps.

The five steps of an honest backtest

1. Write rules a machine could follow. Entry, exit, stop, position size - with zero judgment calls. If your rule says "buy strong support", you can't backtest it; you'll unconsciously pick the supports that worked. "Buy when price closes above the 20-day high" is testable.

2. Get enough data, including the ugly years. A crypto strategy tested only on a bull year is a bull-market detector, not a strategy. Include at least one full cycle - for crypto that means 2021's euphoria, 2022's collapse, and the chop between. Hundreds of trades, not dozens.

3. Charge yourself real costs. Every trade pays fees, spread, and slippage. Small strategies die entirely inside those costs - a system that earns 0.3% per trade before costs and pays 0.2% in costs is a donation schedule. Model them pessimistically.

4. Run it, then split the verdict. Look past total return to the numbers that describe how it earned: win rate, average win versus loss, maximum drawdown, and the worst losing streak. A strategy that returns 40% with a 35% drawdown is a different animal from one returning 25% with a 10% drawdown - and you will live inside the drawdown, not the summary line.

5. Validate out of sample. Tune your rules on one slice of history, then test untouched on another. If performance collapses on the fresh slice, you didn't find an edge - you memorized the past.

The traps that make backtests lie

Overfitting is the big one: add enough parameters and any random data will produce a beautiful equity curve - about that specific past and nothing else. Fewer rules, tested on more data, beat clever rules tested on little. Lookahead bias sneaks tomorrow's information into today's decision - using a daily close to enter during that same day. Survivorship bias tests only coins that still exist, quietly skipping the ones that went to zero. And cherry-picking the start date turns any strategy into a winner - starting a Bitcoin backtest in January 2023 proves January 2023, nothing more.

What a good backtest actually proves

Less than you hope, more than nothing. It proves your rules were profitable in one specific past, with acceptable pain along the way. It cannot promise the future - markets shift regimes, and every edge decays. That's why the pipeline doesn't end at backtesting: forward-test on paper next, where real-time execution and your own emotions enter the picture, then go live small. Backtest kills the bad ideas, paper trading rehearses the good ones, live trading with small size confirms them.

Indikora is built around exactly that pipeline: its signal engines are backtested across multi-year data including full bear markets, its paper-trading simulator lets you forward-test any approach with virtual money, and the journal then measures whether the live version of you actually executes what was tested.

Frequently asked questions

How much data is enough? Enough to include at least one full market cycle and several hundred trades. For most swing strategies that means years, not months.

Is a profitable backtest a guarantee? No. It's a filter that removes provably bad ideas. Passing it earns a strategy the right to be paper traded - not your money.

Backtesting vs paper trading - which do I need? Both, in that order. Backtesting covers years in minutes; paper trading adds real-time conditions and your psychology. Each catches what the other misses.


Indikora is an AI-powered trading coach for crypto, forex, gold and indices - with backtested signal engines, a paper-trading simulator for forward testing, and a journal that measures your real execution. Try it free: https://indikora.com

This article is for educational purposes only and is not financial advice.

Try Indikora free

An AI trading coach that flags mistakes like FOMO and revenge trading before you click.

Start free →