Trading Knowledge

Forex Backtesting and Three Popular Tools

Forex backtesting runs a strategy on past price data. The steps involved, the metrics to read, points to watch while testing, and three widely used tools.

A trading strategy can look perfectly sensible on paper, yet traders only learn whether it holds up once it is measured against real price action. That kind of self-assessment is an essential step for anyone who wants to build a complete system and avoid unnecessary losses. On top of that, markets change character from one phase to the next, trending at some times and ranging at others, so each phase often calls for its own approach.

Backtesting is the tool that helps traders find a strategy suited to each of those phases before any real money is at stake. The sections that follow cover how the method developed, what it is, why it is worth doing, how to carry it out and which metrics to read, and then introduce three forex backtesting programs that many traders use.

How backtesting has changed

In the 1980s, re-testing a forex trading system was a fairly crude manual job. Traders drew and read charts, decided for themselves where to buy or sell, and then wrote the result of each trade into a journal. Decisions at the time rested mainly on the trader's understanding of familiar price patterns. By the 1990s, anyone who could put live price data on a computer screen was regarded as being ahead of the field.

Today, modern backtesting lets traders see results on screen and evaluate a strategy within a few days. In the past, the same amount of work could stretch over months or even years. Technological progress has shortened and simplified the process to the point where an individual trader can handle it alone.

Better tools, however, do not always mean better results. Traders who bring economic news and an understanding of the market into their backtesting tend to see positive results and higher profits. By contrast, those who rely purely on numbers and strip the human element out of their strategy often end up with losses. For that reason, no software can replace a trader's judgement, especially when that trader knows how to pick the right tool for the job.

What forex backtesting is

Forex backtesting means running a trading strategy on historical price data to see how it would have performed in the past. In practice, the trader takes the strategy's technical rules, such as entry conditions, stop-loss and take-profit levels, and applies them to a stretch of past chart data. The trader then analyses the results to measure how much the strategy earned and how much risk it carried over that period.

This shows traders how their strategy reacts to different market conditions, which in turn reveals its strengths and weaknesses. The results of a backtest also provide the basis for fine-tuning the strategy, improving its chances of success once it is used in live trading.

Why traders should backtest

Backtesting a trading system brings forex traders three major benefits.

A deeper understanding of the strategy

Backtesting gives traders a full picture of how a strategy has behaved in the past. From that, they can judge whether the strategy is likely to be as profitable as they expect. At the same time, the results show how the strategy adapts as the market shifts from one state to another.

Sharper technical analysis skills

Each backtest is a practice session in technical analysis on real data. By reviewing past price swings and performance, traders learn to spot suitable trading opportunities and to recognise trends more quickly. Chart-reading skills, such as reading candlesticks, are therefore honed without risking any capital.

Greater confidence

When traders see that their strategy has delivered good results on past data, they have grounds to trust it more. That confidence matters a great deal in live trading, because traders who lack faith in their system tend to abandon trades halfway or keep changing their approach. Backtesting is also a way to build experience and knowledge, helping traders feel more comfortable and optimistic when facing the real market.

Taken together, these three benefits help traders raise their performance and move closer to success in the foreign exchange market. That is also why this step should come before any real-money deposit.

How to run a backtest

A forex backtest usually goes through three steps:

  1. Load the data: the trader feeds trading data into the backtesting software, or uses a built-in data set, before the test begins.
  2. Build and simulate: the software reconstructs price movement and simulates trades according to the chosen strategy, running on the program's default settings.
  3. Evaluate and decide: based on the results, the trader assesses the strategy and then adjusts it, discards it, or decides to adopt it in future.

For automated strategies, the "settings" in step two are the input parameters of the trading robot (an EA, or Expert Advisor), such as indicator periods and stop-loss and take-profit distances. Every change of parameters is a new test run, so traders should record the parameter set that goes with each result for later comparison.

The parameters window of the sample ExpertMACD EA in MT5, Inputs tab with MACD periods 12, 24 and 9, Take Profit 50 and Stop Loss 20
The parameters window of the sample ExpertMACD EA in MT5, Inputs tab with MACD periods 12, 24 and 9, Take Profit 50 and Stop Loss 20

Metrics to read

Once the run is finished, the software returns a results table, and traders should pay attention to these five metrics:

  • Actual profit or loss: the total amount the strategy gained or lost.
  • Return (%): the increase or decrease as a percentage of starting capital.
  • Risk-adjusted return (%): profit assessed in relation to the level of risk accepted.
  • Market expectation: here, the list of currency pairs selected for trading.
  • Volatility: the number of times the account balance fell during the test.

Only by reading the metrics together does the full picture emerge. For example, a strategy with a large profit but repeated balance drops may be harder to follow in practice than one with moderate profit and a steady equity curve.

Points to watch when backtesting

Backtest results are only reliable when the test is broad enough and long enough. Three points help avoid hasty conclusions:

  • Enough signals: there should be enough trades for an objective result, usually around 30 trades or more.
  • Enough time: the data period should not be too short, ideally three months or more, to give a general picture.
  • No blind reliance: backtesting removes the psychological factor, but no system is perfect, so traders still need to monitor and evaluate the strategy after putting it to use.

When choosing the data period, traders should also test on the same timeframe they intend to trade. A strategy that looks good on H1 will not necessarily hold up on M5 or D1, because price rhythm differs greatly from one timeframe to another.

The MT5 desktop toolbar with buttons to change chart type, zoom in and out, and timeframe buttons from M1 to MN
The MT5 desktop toolbar with buttons to change chart type, zoom in and out, and timeframe buttons from M1 to MN

Three forex backtesting tools

Many programs support backtesting, but the following three names come up often among forex traders, each suited to a different group of users.

Forex Tester

Forex Tester 3 is the third generation of a backtesting program that many traders already know, and it is well regarded for its rich feature set. It supports test runs of 5 types of EA together with 10 manual trading strategies. Users can also test drawing tools such as trend lines, waves, Fibonacci and candlestick patterns, while newcomers get detailed documentation to help them get started.

Forex Tester 3 works on every currency pair and every timeframe, so it can serve many different trading styles. For that reason, quite a few traders consider it almost indispensable for developing and testing strategies. Notably, the software is used not only for forex but also for stocks and cryptocurrencies. Along with its wide range of currency pairs, its ability to store up to 15 years of historical data gives traders a detailed and comprehensive view of strategy performance.

In addition, Forex Tester 3 analyses results automatically and returns statistics and detailed reports. As a result, traders can draw lessons quickly after each test and refine their strategy. Overall, it is a fairly complete and effective program for forex traders, but it is worth noting that it is paid software.

Forex Simulator

Unlike Forex Tester, Forex Simulator is completely free and built into the MT4 platform. For traders already used to MT4, this is a major convenience, as they can backtest without downloading or installing anything else. The tool sits within MT4's main interface, and traders open it by choosing View and then Strategy Tester.

The tool is widely used and relies on MT4's own built-in charting tools. As a result, traders can test many kinds of strategies on the platform, including those based on indicators, price patterns and some EAs. Its historical data is limited to 10 years, less than Forex Tester's 15. Even so, for a free tool, Forex Simulator is well worth using, especially since it supports every currency pair, every timeframe and many asset types such as stocks, gold, silver, oil and cryptocurrencies.

On balance, Forex Simulator is not as powerful or versatile as Forex Tester. It nevertheless remains a sensible choice for traders who need free backtesting software with enough features for basic needs.

Profit Finder

Profit Finder is free forex backtesting software that runs on the NinjaTrader platform, which is less widespread than MT4. Although it is not as well known as Forex Simulator, the tool has three notable strengths:

  • Works with any strategy on NinjaTrader: Profit Finder runs with any strategy, tool or technical indicator available on the platform, giving NinjaTrader users plenty of flexibility when testing.
  • Calculates profit and return automatically: the software reads the take-profit and stop-loss levels of each trade to work out its profit and rate of return, making it quick to judge a strategy's performance.
  • Fast and reliable calculations: Profit Finder is well regarded for the speed and reliability of its calculations, which saves time during backtesting.

Compared with Forex Simulator and Forex Tester, Profit Finder has fewer features. Even so, it remains a useful tool, particularly for traders who already trade on NinjaTrader.

Key takeaways

Backtesting with software has clear advantages over manual backtesting, most notably in time, accuracy and the ability to handle large amounts of data. Beyond that, these programs come with historical data built in and allow test runs at any time, without time constraints. Whichever tool traders choose, they still need to read the results with their own judgement and keep monitoring the strategy once it moves into live trading.

Sources

  • Forex Tester, official website: https://forextester.com/
  • MetaTrader 4, official website: https://www.metatrader4.com/
  • NinjaTrader, official website: https://ninjatrader.com/
  • DCtoptrade (screenshots): https://dctoptrade.vn/

More in Trading Knowledge

View all →

Jesse Livermore's 20 Rules of Speculation

Jesse Livermore grew rich short-selling the crashes of 1907 and 1929. Twenty rules drawn from how he traded, grouped by market, entries, capital and psychology.

BackcomHub · · 4 min read

Four Swing Trading Strategies

Swing trades last from a few days to a few weeks. Four strategies covering trends, ranges, counter-momentum and pullbacks, plus money rules and stop placement.

BackcomHub · · 11 min read

Four Ways to Find Better Trade Entries

A better entry allows a tighter stop-loss and a stronger risk/reward ratio. Four methods: limit orders, end-of-day planning, the TLS checklist and a clear plan.

BackcomHub · · 5 min read