The Best Forex Backtesting Software for Manual and Automated Traders
The best forex backtesting software depends on whether you test by hand or with code. Manual traders are usually best served by a bar-by-bar simulator such as Forex Tester, Soft4FX's MetaTrader add-on, TradingView's Bar Replay or FX Replay; automated traders need a strategy tester with good tick data, such as MetaTrader 5's built-in tester, cTrader's backtester, or a Python framework. The software matters less than the data quality and your discipline in not cheating with hindsight.
Key takeaways
- Split the market into two jobs: replaying charts for discretionary practice, and running coded strategies through a tester.
- MetaTrader 5's Strategy Tester is free, supports real tick data from many brokers and handles multi-currency testing; MT4's tester is more limited.
- Paid simulators mainly buy you convenience: fast-forward controls, built-in historical data, and statistics without manual logging.
- Bad data, ignored spreads and over-optimisation make most backtests look better than live trading will.
- A profitable backtest is evidence worth investigating, never a guarantee. Forward test on demo before risking money.
Two kinds of backtesting
Manual (discretionary) backtesting
You load historical charts, hide the future, and step forward candle by candle, placing trades as you would live. The software's job is to stop you peeking, let you place orders with stops and targets, fill them at realistic prices, and keep score. This suits price-action, supply-and-demand and smart-money style traders whose rules include judgement. Our guide to manual backtesting on TradingView walks through the process step by step.
Automated (systematic) backtesting
You write rules as code (MQL5, cAlgo C#, Pine Script, Python) and the tester runs them across years of data in minutes. The software's job is accurate fills, correct spreads and commissions, realistic tick sequencing, and tools for optimisation and robustness checks. This suits rule-based strategies and Expert Advisors. See how to backtest an EA in MT5 for the mechanics.
The main options compared
The table summarises how each tool is positioned according to its provider. Features and prices change, so treat it as a shortlist and check current details on each official site. We have not run a structured head-to-head test of these products.
| Software | Best for | Data | Automation | Cost model |
|---|---|---|---|---|
| MetaTrader 5 Strategy Tester | EAs, multi-pair systems | Broker history, real ticks where available | MQL5, optimisation, forward test | Free with platform |
| MetaTrader 4 Strategy Tester | Legacy MQL4 EAs | Broker M1 history, modelled ticks | MQL4, single symbol | Free with platform |
| Forex Tester (desktop / online) | Manual practice with built-in data | Provider's historical data subscription | Some strategy support; check current version | Licence or subscription |
| Soft4FX Forex Simulator | Manual practice inside MT4/MT5 | Your broker's MetaTrader history | Manual only | One-off purchase at the time of writing |
| TradingView Bar Replay + Strategy Tester | Quick manual replay and Pine scripts | TradingView's feeds | Pine Script strategies | Free tier; more replay options on paid plans |
| cTrader Automate | C# cBots | Broker tick or bar data | C#, optimisation | Free with platform |
| FX Replay | Browser-based manual replay | Provider's data | Manual focus | Subscription |
| Python (backtrader, vectorbt, custom) | Research, portfolio and statistical testing | Whatever you source | Full control | Free libraries; your time |
MetaTrader 5 Strategy Tester
For anyone running Expert Advisors, MT5's tester is the default starting point because it is free, capable and runs the same code that will trade live. It offers several modelling modes, including "every tick based on real ticks", which replays actual recorded ticks where your broker provides them. It can test portfolios of symbols in one run, which MT4 cannot, and it supports genetic optimisation and a forward-testing period inside the same run to check whether optimised settings hold up on unseen data.
The limitations are mainly about data. How much tick history you get, and how clean it is, depends on the broker whose server you are connected to. Spreads in the test come from that history, which may or may not resemble the spreads you will actually pay. Running the same EA on data from two different brokers is a cheap and revealing check. For the differences in language and platform design, see MQL4 vs MQL5.
What about MT4?
MT4's tester runs a single symbol and, by default, interpolates ticks from one-minute bars, which can misrepresent results for scalping systems or tight stops. Third-party tick-data tools exist to improve this; our article on 99.9% tick data backtesting in MT4 explains what they do and what they cannot fix. If you are starting fresh, MT5 is the stronger testing environment.
Forex Tester, Soft4FX and TradingView for manual traders
These are the three names manual traders most often compare, and we cover them in depth in Forex Tester vs Soft4FX vs TradingView. In brief:
- Forex Tester is purpose-built simulation software with its own historical data service, multiple-timeframe charts that stay synchronised as you step forward, and detailed statistics. It is the most complete of the three and the most expensive over time.
- Soft4FX Forex Simulator is an add-on that turns MetaTrader into a replay environment, so you practise on the same charts and indicators you use live. It relies on MetaTrader history, which is fine for most swing and day-trading tests but thinner for tick-level work.
- TradingView Bar Replay is the fastest to start: open a chart, click replay, pick a starting point. It is excellent for quick reps on a setup. Intraday replay depth and multi-chart replay are tied to paid plans at the time of writing, and trade tracking during replay is more basic than in dedicated simulators.
FX Replay is a browser-based alternative focused on the same manual-practice job, with built-in trade logging. As with any subscription tool, check the data coverage for the pairs and timeframes you trade before paying.
Python and coded research
Traders comfortable with code often outgrow platform testers. Python libraries let you test across many pairs at once, run Monte Carlo resampling, apply walk-forward analysis, and combine price data with economic data in ways MetaTrader was never designed for. The cost is time: you must source and clean data, model spreads, commission and swaps yourself, and avoid subtle errors such as using a bar's close to trigger a trade that would have needed the close to be known in advance (look-ahead bias).
A common workflow is to research ideas in Python, then implement the surviving strategy in MQL5 or cTrader and re-test it on broker data before demo trading. If you want to go this route, our guide to downloading historical tick data covers data sources and pitfalls.
Worked example: how costs change a backtest
A 15-minute EUR/USD strategy shows 400 trades over two years in a tester with zero spread and no commission. Average gain per trade is 3.0 pips, trading 1 standard lot ($10 per pip). Gross result: 400 × 3.0 × $10 = $12,000.
Now add realistic costs. On a raw-spread account with an average spread of 0.2 pips and a commission of, say, $7 per lot round turn (a figure in the range many brokers have charged; check yours), the cost per trade is 0.2 × $10 + $7 = $9, or 0.9 pips. Add an average of 0.3 pips of slippage on stops and market entries and the total drag is 1.2 pips per trade.
| Scenario | Net pips per trade | Net result over 400 trades |
|---|---|---|
| No costs (as tested) | 3.0 | $12,000 |
| Spread + commission | 2.1 | $8,400 |
| Spread + commission + slippage | 1.8 | $7,200 |
| Standard account, 1.2-pip spread, no commission, plus slippage | 1.5 | $6,000 |
Costs removed 30% to 50% of the result. For a strategy averaging 1.5 pips gross, the same costs would wipe it out entirely. This is why short-timeframe systems that look spectacular in a zero-cost test so often fail live, and why the best backtesting software is one that lets you set spread, commission and slippage explicitly.
After the backtest: robustness checks
Whichever software you use, a single backtest result is one path through history. Before believing it, run a few cheap checks that most testers support either directly or through exported trades:
- Parameter sensitivity. Nudge each setting up and down by 10% to 20%. If a 20-period moving average is profitable but 18 and 22 are not, the result is probably noise. Robust strategies degrade gently.
- Out-of-sample data. Optimise on one block of years and test, untouched, on another. MT5 builds this into its forward-testing option.
- Trade-order shuffling. Resample the sequence of trades many times to see the range of drawdowns the same edge could have produced. Our guide to Monte Carlo simulation explains the method.
- Different data source. Re-run on another broker's history. Large differences mean the result depends on quirks of one feed.
- Remove the best trades. Delete the top five winners and see whether anything is left. Strategies that depend on a handful of outliers are fragile.
None of this proves a strategy will work. It filters out the most common ways a backtest lies, which is the realistic goal.
Choosing: a practical checklist
- Define the job. Manual practice, EA testing, or research. Most traders need one tool for the first and their platform's tester for the second.
- Check data coverage. Which pairs, how many years, what granularity (tick, M1). Ten years of daily data is useless for a scalper.
- Check cost modelling. Can you set variable spreads, commission per lot, swaps and slippage?
- Check honesty controls. Does the simulator hide future bars across all timeframes? Can you accidentally see the right side of the chart?
- Check output. Can you export trades to your journal or spreadsheet for deeper analysis?
- Try before paying. Use free versions or trials, and test a setup you already know well to see whether the results look sane.
Frequently asked questions
What is the best free forex backtesting software?
For automated strategies, MetaTrader 5's Strategy Tester is free and very capable, with real-tick modelling where your broker supplies the data. cTrader's backtester is the equivalent for C# cBots. For manual practice, TradingView's free plan includes basic Bar Replay. Python libraries are free but demand programming time and your own data.
Is Forex Tester worth paying for?
It can be for traders who backtest manually for many hours and value synchronised multi-timeframe replay, built-in data and automatic statistics. For occasional practice, TradingView replay or a MetaTrader add-on may be enough. Use any trial on a setup you know well before committing, and confirm current pricing and data terms on the official site.
How many years of data should I backtest on?
Enough to include different market conditions: trending and ranging periods, high and low volatility, and major central bank shifts. For intraday strategies that often means at least two to three years of tick or one-minute data; for swing strategies, longer. More important than the span is the number of trades: a few hundred gives far more confidence than a few dozen.
Why are my live results worse than my backtest?
Common reasons are costs not modelled properly, slippage on stops and news, look-ahead bias in the rules, parameters optimised to past noise, and changes in market behaviour. Psychological factors also matter for manual traders: hesitation and skipped trades rarely appear in a backtest. Comparing live trades with the backtest trade by trade usually reveals which factor dominates.
Can I backtest on my phone?
Browser-based tools such as TradingView and some web replay services work on mobile, but the small screen makes serious manual backtesting awkward. MetaTrader's mobile apps do not include the strategy tester. For meaningful sample sizes, a desktop or laptop with a large screen is far more practical.
Does backtesting work for prop firm challenges?
It helps you understand drawdown and losing streaks, which matter more for prop rules than average profit. Test with the firm's limits in mind: check the worst day and the longest losing run in your results against the daily and maximum drawdown rules. Remember that a backtest cannot show how you will trade under the pressure of a paid evaluation.
This article is general information, not personal financial advice. Figures such as spreads, fees, leverage and rules change; confirm them with the provider and check the provider is authorised for your country of residence.