Guide

Trading backtesting: the complete guide to getting started

Everything you need to know about trading backtesting before you risk your first dollar: what it is, how it works and which tool to start with.

Updated: October 2026 · Trade & Repeat

Trading backtesting means testing a strategy on past prices before you risk a single real dollar. You replay historical price data candle by candle, apply your entry and exit rules, and measure the results with the same discipline you'd expect from a live account. This guide covers what backtesting is, why it matters, how to do it step by step, which markets you can practice on and which mistakes to avoid. Each topic links to a dedicated guide if you want to go deeper.

Rather learn by doing? Start a 7-day free trial and practice on real historical data while you read.

See plans

What is trading backtesting?

Backtesting is the process of testing a trading strategy's rules on historical price data to see how it would have performed in the past, before you trade it with real money. You can do it manually, one candle at a time, or automatically with code.

The goal isn't to predict the future. No amount of historical data can guarantee that. The goal is to find out whether your system has a consistent statistical edge (a repeatable advantage over random chance) and, above all, whether you can actually execute it with discipline. Think of a pilot training in a flight simulator before flying passengers: you want to fail cheaply, in a controlled setting, instead of failing expensively (see the formal definition on Wikipedia).

Why backtest before trading live?

Most new trading accounts aren't lost because of a bad strategy. They're lost because someone traded a strategy they never validated. Backtesting tackles that problem from several angles:

  • Confidence you can measure: instead of "believing" your strategy works, you have a track record of trades that either backs it up or proves it wrong, before it costs you real money.
  • Catching flaws early: vague rules, poorly defined entries or inconsistent risk management show up much faster when you review a hundred historical trades than when you wait to live through them one by one.
  • Building discipline: manual backtesting makes you follow your rules over and over. That's the same repetition you'll need live, when price moves against you.
  • Learning without losing money: every mistake costs you time, not capital. It's the difference between paying for your learning curve in real money or in practice sessions.
  • Preparing for the emotional side of drawdowns: even strategies that work go through losing streaks (a drawdown is the drop from a peak in your account to its next low). Living through several of them in backtesting, with no real money at stake, helps you avoid abandoning your rules on impulse the first time things go badly.

None of these benefits show up if you backtest once and stop. Backtesting pays off as a habit you repeat (hence the name Trade & Repeat), not as a one-time exam you either pass or fail.

Manual vs. automated backtesting

These aren't two versions of the same thing. They solve different problems. Manual backtesting replays historical data candle by candle while you mark each entry and exit, just as you would on a live account. It does the most to train your discipline and your price reading, and it doesn't require any coding. Automated backtesting runs a coded strategy over thousands of trades in seconds. It's faster for validating the pure logic of a system, but it doesn't train your execution or your psychology.

If you're a discretionary trader (one who makes each decision by reading the chart rather than following a coded system) and still building your skills, manual backtesting usually pays off more. We go into when each one makes sense in manual vs. automated backtesting: differences, pros and cons.

How to backtest, step by step

  1. Write down your rules before you look at a single candle: entry condition, exit condition, position size and risk management. If you can't write them in one paragraph, they aren't ready to test yet.
  2. Pick an instrument and a timeframe that fit your strategy (see the table below for what's available in Trade & Repeat today).
  3. Replay the history candle by candle without peeking at what you "already know" happened next. That's the most common trap in manual backtesting, and also the easiest one to avoid with a tool designed to stop you from looking ahead.
  4. Mark every trade with its entry, exit and result, just as you would in a real trading journal.
  5. Review your statistics: win rate, risk/reward ratio and equity curve. Use them to decide whether the strategy has earned a move to a demo or live account.

For the full detail of each step, with screenshots from inside the tool, we have a dedicated guide: how to backtest a forex strategy step by step.

A real example: what a backtesting session looks like

Take a simple breakout strategy on EUR/USD, on the H1 (one-hour) chart. You go long when price closes above the high of the last 20 candles. Your stop loss sits 15 pips below the entry and your take profit 30 pips above it, a 1:2 risk/reward ratio. You start the replay from a date you don't remember.

On candle 47, the condition is met: price closes above the recent high. You mark the entry, the stop and the target using exactly those numbers, not "eyeballed" after seeing where price went next. Then you move forward one candle at a time. If price hits the target first, you log a 30-pip win. If it hits the stop first, you log a 15-pip loss. You repeat this over several sessions until you have a sample of at least 30 to 50 completed trades.

At the end, you don't have an opinion about the strategy. You have a trade log with a win rate, a real risk/reward ratio and an equity curve you can review objectively before you risk a single real dollar.

The most direct way to learn this is to practice it. Start your first session with a 7-day free trial.

See plans

Which markets you can practice: forex and CFDs

Trade & Repeat started with a focus on forex, but the catalog now goes beyond currency pairs. Today it covers 11 forex pairs and three instruments traded as CFDs (contracts for difference): gold and the Nasdaq 100 and S&P 500 indices. Each one uses its own correct point value, not a generic figure. Here's the full catalog:

CategoryAvailable instrumentsTimeframes
Forex (11 pairs)The 8 majors (EUR/USD, GBP/USD, USD/JPY, AUD/USD, USD/CAD, USD/CHF, NZD/USD, EUR/JPY) plus 3 euro crosses (EUR/GBP, EUR/AUD, EUR/CHF)M1 · M5 · M15 · H1 · H4 · D1
CFDsGold (XAU/USD) and the Nasdaq 100 (NAS100) and S&P 500 (USA500USD) indicesM1 · M5 · M15 · H1 · H4 · D1

Each instrument calculates your results with its own point value, not a fixed figure designed only for currency pairs. That way, your statistics come closer to what you would have won or lost on that instrument. The catalog keeps growing; crypto isn't included today.

Backtesting vs. live trading: what changes and what doesn't

Backtesting reproduces how you analyze the market and apply your rules, but it doesn't reproduce everything that happens on a live account. What does carry over: your ability to spot the pattern you're looking for, the discipline to respect the stop loss you set, and the ability to make a decision without hesitating.

What doesn't fully carry over: slippage (the gap between the price you see and the price your order actually fills at), the psychological pressure of having real money on the line, and market liquidity at the exact moment you enter. That's why we recommend a third step after backtesting: a demo account, where those factors do show up, still without risking capital.

How to read your results: the statistics that matter

A high win rate means nothing on its own. A strategy that wins 70% of the time can still lose money if your average loss is three times your average win. To judge a strategy, you need to look at win rate, risk/reward ratio and the shape of your equity curve over time, together. We wrote a full guide on reading these three numbers together: how to read your backtesting statistics.

Common backtesting mistakes

  • Hindsight bias: glancing at what you "already know" happened after the current candle, instead of deciding only with the information you'd have had at that moment.
  • A sample that's too small: 10 or 15 trades aren't enough to tell a real edge apart from luck.
  • Ignoring trading costs: if you don't subtract the spread and commissions, your results look better than they would on a live account.
  • Overfitting ("curve fitting"): changing your rules halfway through the backtest until they "work" on that specific stretch of history, instead of keeping them fixed from start to finish.
  • Logging only the result: if you don't record why you took each trade, you can't tell an execution mistake apart from a real flaw in the strategy later on.

Of these five, hindsight bias is the sneakiest, because it's almost never deliberate. If your eyes drift half a second past the current candle, your brain already "knows" where price went. That's why a tool that forces you to move forward one candle at a time, without showing you what's coming, matters more than it might seem.

Quick glossary: terms you'll come across

TermWhat it means
Win rateThe percentage of your trades that were winners.
Risk/reward ratio (R:R)How much you risk compared with how much you stand to gain on each trade.
DrawdownThe largest drop from a peak in your equity curve to its lowest point afterward.
ExpectancyHow much you win or lose per trade on average, combining win rate and R:R.
SlippageThe gap between the price you see and the price your order actually fills at on a live account.
Hindsight biasMaking decisions with information you wouldn't have had yet in real time.
Overfitting (curve fitting)Tailoring a strategy so closely to one stretch of history that it no longer captures a real market edge.

How to choose a backtesting platform

Not every platform solves the same problem. Before you choose, compare them on these four criteria:

  • Language and support: not just whether the site has a translated version, but whether the whole experience (menus, support, learning material) works in a language you're comfortable with.
  • Price: some options are completely free, others only on a limited tier, and others are paid from day one.
  • Supported markets: forex, CFDs, stocks, crypto. Not every platform covers the same ones.
  • Learning curve: how long it takes before you're actually practicing, with no installation or extra setup.

We've written head-to-head comparisons against the best-known options:

If you want all three summed up in one place, with a focus on the free options out there, read the best free backtesting platform.

Why Trade & Repeat

Most backtesting platforms, including the most complete ones, are designed and written in English from start to finish, which leaves out traders who would rather learn in their own language. Trade & Repeat was born from that frustration among Spanish-speaking traders, and we tell the full story in backtesting in your native language: why we built Trade & Repeat. Today the tool is also available in English. It has a Monthly plan at $20/month (with a 7-day free trial) and an Annual plan at $240/year, it covers forex and CFDs from M1 to D1, and it's built specifically for traders who are still working through their learning curve, without the price of professional trading suites. If you have questions while you practice, you can also get support through our Telegram community (conversations there are mostly in Spanish).

The bottom line

Trading backtesting is a low-cost way to put a strategy to the test before you risk money. Write down your rules, pick an instrument and a timeframe, and replay the history candle by candle without peeking ahead. Mark every trade with discipline, then review win rate, risk/reward ratio and equity curve together, not one at a time. Do it in short, repeated sessions. That's the whole idea behind the name Trade & Repeat.

Frequently asked questions

What exactly is backtesting in trading?
It's the process of applying a strategy's rules to historical price data, one candle at a time, to see how it would have performed before you risk real money. It doesn't predict the future. It measures whether your system has shown a consistent statistical edge in the past.
Does backtesting guarantee results when I trade live?
No, and any platform that promises it isn't being honest with you. Backtesting reduces uncertainty and catches flaws in your strategy before they cost you real money. But live markets add factors that historical data can't fully capture, such as slippage or how you handle your emotions under pressure.
Do I need to know how to code to backtest?
Not if you backtest manually: you replay historical data candle by candle and mark your own trades, the way you do in Trade & Repeat. Automated backtesting does require coding your entry and exit logic, usually in your platform's own language (Pine Script on TradingView, MQL on MetaTrader).
How much should I practice before trading live?
There's no magic number of hours, but there is a clear signal: your strategy holds consistent results over several dozen trades, and you no longer second-guess your own rules when you execute them. That's a reasonable foundation. Many traders skip this step and end up paying for their learning curve with real money instead of time.
Does Trade & Repeat have a free plan?
There's no free-forever plan, but there is a 7-day free trial so you can try the full tool before you decide. After that, it's $20/month on the Monthly plan or $240/year on the Annual plan, with the same features on both. We built it for traders who are still working through their learning curve, without the price tag of professional trading software.
What's the difference between backtesting and a demo account?
Backtesting replays historical data at your own pace: you can pause and move forward one candle at a time. A demo account runs in real time, with live prices and no pause button. The two steps work together: first you validate the strategy with backtesting, then you test your execution in real time on a demo account.

Educational content only; it is not financial advice. Trading financial markets involves the risk of losing capital. Practice with backtesting before you risk real money, and check the guidance from your local financial regulator if you plan to trade live. For more background on backtesting, see Investopedia's guide.

· Start today

Your next sessionstarts here

Pick a plan and start practicing in minutes, or log in if you already have an account.

· What is Trade & Repeat

Trade & Repeat is a backtesting tool that helps traders analyze, adjust and refine their strategies on real historical data before putting real money on the line. Our goal is to give every user a clear, measurable and repeatable process to validate their approach, build discipline and make evidence-based decisions.

TTrade & RepeatBacktesting for serious traders

© 2026 Trade & Repeat. All rights reserved.

The information and charts shown in Trade & Repeat are based solely on historical price data and are provided for educational and strategy simulation purposes. Although the data comes from high-precision institutional sources, the platform does not guarantee its absolute accuracy, completeness or real-time validity. Simulated or backtested results do not constitute financial advice, investment recommendations or a guarantee of future returns in real markets. Trade & Repeat EIRL disclaims any liability for financial losses arising from the use of this information in live trading.