Backtest Process

How to Backtest a Trading Strategy Free, Online

Backtesting a trading strategy for free, entirely online, is a solved problem - the complete loop runs in a browser tab at zero cost. This guide gives you the seven-step method end to end, the version of it that applies to gold, and an honest account of what free tiers really restrict.

Key takeaways

  • Free and online is now the default, not the compromise - a browser simulator runs the whole loop: hidden future bars, real orders with costs, risk-based sizing, and a full statistics report.
  • The method matters more than the tool. Written rules, a random start date, every qualifying setup taken, and 100+ trades are what separate a backtest from a scroll through history.
  • Gold needs the same method with different sizing - its average daily range grew roughly five-fold between 2018 and 2025, so a fixed pip stop fitted to one year is meaningless in another.

What "backtesting free online" actually means

Three different things get sold under that phrase, and only one of them is a backtest.

The first is a free chart. You scroll back through history, look at a setup, and decide you would have taken it. This feels like research and produces nothing measurable, because you can already see what happened next. Hindsight is not a control you can switch off by promising to be honest.

The second is a free trial. The tool is complete, but the clock is running, and a strategy test that needs a weekend of replay does not sit comfortably inside a countdown that started the moment you registered.

The third - the one worth your time - is a free simulator: historical price replayed bar by bar with the future genuinely hidden, orders that fill at a price and are charged spread and commission, position sizes derived from a risk rule, and a report at the end that computes your statistics for you. "Online" simply means this runs in a browser: no licence key, no installer, no Windows-only build, and no separate expedition to find and clean historical data, because the datasets ship with the tool.

That last point is underrated. Assembling a free desktop setup means downloading historical data, checking it for gaps, importing it, and configuring the tester before you place a single trade. Most people who set out to backtest for free stall in that phase and never reach the part that produces an answer.

The free loopeverything below runs at zero cost
01Future bars hidden
02Rules applied blind
03Costs charged
04Statistics computed

How to backtest a trading strategy for free: the seven steps

This is the whole method. It is the same on any instrument and any timeframe, and no step in it costs money.

1. Write the strategy down before you open a chart

One entry condition, one stop rule, one exit rule, in plain sentences you could hand to a stranger. This is the step people skip, and it is the real reason most backtests stall - not tooling. A rule like "enter on a strong pullback" cannot be tested, because "strong" gets decided after you see the outcome. "Enter when price retraces to the 20 EMA in an uptrend and closes back above it" can be tested, because it is either true on a bar or it is not.

2. Pick one instrument and one timeframe

Not five. A strategy tested across five markets at once produces a blended result that hides which market it actually works on. Start with the pair you would trade live - EUR/USD is the usual first choice because its spread is tight and its behaviour is well documented - and add instruments only after you have a verdict on the first one.

3. Jump to a random historical date

Left to yourself, you will start somewhere you vaguely remember, and vague memory selects for periods that suited your strategy. A random start date removes that. It costs nothing and it is the cheapest defence there is against curve fitting.

4. Step forward bar by bar, with the future hidden

This is the mechanical difference between backtesting and reminiscing. You see the chart exactly as you would have seen it live, decide, and only then reveal the next bar. If the tool lets you peek ahead - or if you are scrolling a static chart and deciding retrospectively - the results will flatter you, and that is the most common backtesting mistake there is.

5. Size every position from a fixed risk rule

Set risk as a percentage of the account - 1% is the standard - and let the stop distance determine the lot size. Fixed-lot testing quietly turns your results into a story about which trades happened to be big, not about whether the strategy has an edge. Any simulator worth using does this arithmetic for you.

6. Take every setup that meets the rules

Every one, including the ugly ones you would "obviously" have skipped. Skipping is selection bias, and it inflates every statistic downstream of it. If a filter is genuinely part of your strategy, write it into the rules in step 1 and apply it consistently; if you cannot write it down, it is not a rule, it is a mood.

7. Stop at 100+ trades and read the report

Below about 30 trades, win rate is noise. A hundred or more, spanning both trending and ranging conditions, is where the numbers start meaning something. Then read the four that matter: expectancy per trade, profit factor, maximum drawdown, and the shape of the equity curve. Positive expectancy with a drawdown you could actually sit through means move to forward testing. Negative expectancy means you just saved yourself months of live losses - which is also a win, and it also cost nothing.

The whole method is free. Nothing in steps 1 to 7 requires a paid tier. What paid software sells is convenience, automation and tick-level fills - not the ability to reach a verdict. Reach the verdict first, then decide whether the convenience is worth paying for. See do you need paid backtesting software for that call.

How to backtest gold (XAU/USD) for free

Gold is the market people most often try to backtest for free and most often get wrong, because the method above is right but the sizing intuition carried over from forex is not.

Gold is not a currency pair. It is priced in dollars and cents per ounce with a different contract value per point, so a move that sounds the same size as a forex move is a completely different amount of money. Any simulator that carries gold properly handles this arithmetic for you - but you still have to respect it when you choose a stop.

The bigger issue is that gold's volatility regime shifted dramatically inside the period most people test. From our own measurement of 3,419 XAUUSD daily bars:

$10.50Avg daily range, 2018
$53.50Avg daily range, 2025
1.17%Avg range as % of price, 2015-2025
1.8xGold vs EUR/USD, % volatility

Two consequences for a free gold backtest. First, a stop distance from 2018 is not a stop distance for 2025. Gold's average day ran about five times wider at the end of that window than in the middle of it, so a fixed stop that was generous in 2018 sits inside the noise today. Size off ATR or a percentage of price instead, and the stop travels with the regime rather than being fitted to one.

Second, gold is steadier than the raw numbers suggest. As a share of price the daily range stayed between 0.83% and 1.53% across the whole decade - roughly 1.8 times EUR/USD, not the three-times-plus the point counts imply. The dollar range exploded mostly because gold itself went from around $1,150 to well over $3,000.

Practically: when you pick a test window for gold, deliberately include at least one quiet year (2017-2018) and one violent one (2020 or 2025), so the result is a strategy verdict rather than a single volatility regime in disguise. The full year-by-year table and the rest of gold's mechanics are in how to backtest gold (XAU/USD).

Computed 2026-08-27 from the FxBacktest tick-derived OHLC archive: 3,419 XAUUSD and 3,440 EURUSD daily bars, 2015-2025. Ranges are the daily high-low, averaged by year; percentages divide that range by the day's close.

What free actually limits - and what it doesn't

Free tiers are not all shaped the same, and the shape decides whether the tier is usable. The fair kind limits storage - how many finished sessions you keep - or the depth of secondary analytics. Your current test is never interrupted; you simply curate what you archive, and the verdict numbers stay visible.

The kind to walk away from breaks the loop itself: trials that expire mid-test, tools that block trade placement until you pay, or reports that show a teaser and paywall the actual statistics. A single question sorts them: can this free tier take one complete 100-trade test from start to finished report? If yes, the tier is real. If answering requires a card number, "free" is doing marketing work rather than describing the product.

Being specific about our own: FxBacktest's free tier runs the full bar-by-bar engine across all 93 instruments and all seven timeframes, with no card and no countdown. The report you get for free includes win rate, average risk-reward, net P&L, profit factor, expectancy, maximum drawdown, recovery, the balance curve and streak analysis. What free caps is saved sessions - three of them - and a handful of secondary breakdowns such as wins and losses by day of week. It does need a free account with an email address; the account is what makes saved sessions and a continuous testing history possible at all. New accounts also get ten days of Pro, so you can see the deeper analytics before deciding whether they matter to you.

Measured: the depth a free archive has to have

The usual failure of free backtesting is not the interface - it is history that stops two years back, which quietly caps how good your answer can be. For transparency, here is what sits behind our own free tier, counted from the archive:

Instrument groupCountHistory starts
FX majors62010
FX crosses92010
Metals (gold, silver)32009
Indices (US30, US500, US100, GER40)42013
Crypto (BTC, ETH)22017
Stocks (AAPL, NVDA, TSLA)32017
Energy (Brent)12010
Total282009

That is 2.2 million hourly bars across 28 instruments, with the majors reaching back to 2010 and gold to July 2009. Depth matters more than instrument count: sixteen years spans the 2015 franc shock, the 2016 referendum, the 2020 crash and the 2024-25 gold run, so a strategy meets genuinely different regimes instead of one recent stretch. When you compare free options, ask for the start year per instrument. It decides whether the tool can answer your question at all, and it is the number most often left off marketing pages.

Counted 2026-08-27 directly from the FxBacktest OHLC archive (28 instruments, 2,199,262 hourly bars, earliest bar 21 July 2009 on XAUUSD). Derived from Dukascopy tick data and refreshed nightly.

Bottom line

Backtesting a strategy for free online stopped being a compromise the moment browser simulators started executing orders and computing statistics. The burden of proof now sits on paid software: it has to name a capability you specifically need - coded parameter sweeps, tick-level fills inside the candle, offline work - and for most discretionary traders it cannot. Write one strategy down, replay it to a hundred trades on the market you actually trade, and let the report decide what happens next. If that market is gold, do it across two different volatility regimes. The method costs nothing but the weekend.

Free online backtesting FAQ

Can I backtest a trading strategy for free?

Yes, and not a stripped-down version of one. A browser simulator gives you the complete loop at zero cost: hidden future bars, real orders with spread and commission charged, risk-based position sizing, and an end-of-session report with win rate, expectancy, profit factor and maximum drawdown. Those are the numbers that decide whether a strategy is worth trading, and none of them sits behind a paywall on a good free tier.

Is there a free backtesting tool online, with nothing to install?

Yes. Browser-based simulators run entirely online - no licence key, no download, no Windows-only installer, and no separate step to source historical data because the datasets ship with the tool. The trade-off versus installed desktop software is tick-level fill modelling and offline use, neither of which a discretionary trader needs in order to prove an edge. The free software comparison covers how the options stack up against each other.

How do I backtest gold (XAU/USD) for free?

Load XAU/USD in a free browser simulator that models gold's own contract size rather than treating it as a currency pair, then test across a window that includes both a quiet year and a violent one. Gold's average daily range ran about $10.50 in 2018 and about $53.50 in 2025 - five times wider - so a stop distance fitted to one regime will not carry to the other. Size off ATR or a percentage of price instead of a fixed pip stop.

Do I have to pay to get useful backtest statistics?

No. The verdict numbers - win rate, average risk-reward, expectancy per trade, profit factor, maximum drawdown and the shape of the equity curve - are all readable for free. What paid tiers add is convenience and depth: more saved sessions, longer trade histories, and secondary breakdowns. Paying for those before the edge is proven is backwards.

How many trades does a free backtest need before it means anything?

Aim for at least 100 trades, spread across trending and ranging conditions. Below roughly 30 trades the win rate is noise, and a run of luck in either direction dominates the result. Sample size is what makes a backtest evidence rather than an anecdote - and it costs nothing but replay time.

Is a demo account the same as free backtesting?

No. A demo account trades live markets at live speed, so a hundred-trade sample takes months. Replay compresses years into a weekend. Prove the edge in replay first, then use a demo to practise execution - the two answer different questions, as demo versus backtesting sets out.

Sources

Risk disclaimerTrading foreign exchange, CFDs, and other leveraged products carries a high level of risk and is not suitable for every investor — losses can exceed your deposits. Everything on this page is educational content, not financial advice. Backtest and simulator results are hypothetical: they do not represent live trading and past performance does not guarantee future results.