Backtesting

Forex Backtesting

Find out whether a setup has worked before, on real data, before you put money behind it.

What backtesting is

Backtesting means taking a trading idea, writing it down as rules precise enough that there is no judgement left, and checking what would have happened every time those rules were met in the past. "Buy when the trend turns up" is an opinion. "Buy when the 1 hour trend is bullish and the squeeze score is 70 or more" is a rule you can test.

The point is not to find a strategy that never loses. It is to find out, before you risk anything, whether a setup you like has any edge at all, how often it comes up, and how bad the bad trades get.

How to backtest a forex strategy

  1. Write the entry as rules. Every condition must be a yes or no answer from the chart or the data: a trend direction, a reading above or below a level, a percentage move.
  2. Decide how long you hold. A fixed horizon (one hour, four hours, a day) keeps the test honest. Moving the exit after seeing the result is how backtests lie.
  3. Pick a test window and stick to it. Test across different conditions: a trending month and a choppy month can give opposite answers.
  4. Look at the spread of results, not the average. A positive average built on two huge winners and a long run of small losses is a very different strategy to trade than a steady one.
  5. Check the sample size. Twelve matches tell you almost nothing. A few hundred start to mean something.

You can do this by hand, scrolling back through charts and logging each signal in a spreadsheet. It works, but it is slow, and it is very easy to see the setups you expect and miss the ones that failed.

How the Markets Mastered backtester works

The backtester runs on the same data the platform uses for its live readings: a snapshot of every tracked instrument every 15 minutes, with trend, squeeze, volatility and currency strength. You build a rule set from those readings and it finds every past moment they lined up.

  • Rules from the platform's own readings: squeeze score, percentage change over 15 minutes to a day, ATR in pips, base and quote currency strength, and trend direction on the 15 minute, 1 hour, 4 hour and daily charts.
  • Up to five conditions, combined with AND (all must match) or OR (any can match).
  • One pair or the whole universe, over the last 7, 30 or 90 days.
  • A fixed horizon of 1 hour, 4 hours or 1 day, measured from each match.

For each test you get the number of matches, the win rate, the average, best and worst move over the horizon, a histogram of every outcome, and a sample of the individual matches so you can check them on a chart.

Example rule set

Squeeze score≥70
and
Trend 1hisbullish

Tested on every tracked pair over 30 days, measuring the move 4 hours after each match. Asks one question: when a pair is coiled tight and the hourly trend is up, does it tend to break higher?

What a backtest cannot tell you

A backtest measures how price moved after the rules were met. It does not include spread, commission or slippage, and it does not know where you would have put your stop. Treat a good result as a reason to watch the setup live and log it in your journal, not as proof it will keep working. Markets change, and the last 90 days are only the last 90 days.

Once a setup earns a place in your plan, size every trade from the stop with the position size calculator, so a losing run costs what you expected and no more.

Inside Markets Mastered

Test your setup on real data

The backtester is part of Pro, alongside the trade journal that tracks how the setups you actually take perform once they are live.

  • Backtest any rule set against months of real history
  • Trade journal with win-rate analytics
  • Custom alert builder, so a tested setup alerts you when it next appears

Frequently asked questions

What is backtesting in trading?

Testing a trading strategy against past market data to see how it would have performed. You define the entry as fixed rules, find every time they were met, and measure what price did next.

How much data do I need to backtest a forex strategy?

Enough matches to rule out luck, ideally a few hundred, and enough time to include different market conditions. A setup that only appears a handful of times a month needs a longer window, or testing across many pairs at once.

Is backtesting the same as paper trading?

No. Backtesting checks a strategy on the past in minutes. Paper trading runs it forward in real time without real money. Most traders backtest first to see whether an idea is worth the weeks of paper trading or small live trades that follow.

Is the Markets Mastered backtester free?

No, it is part of the Pro plan. The calculators, currency strength meter, market hours and economic calendar are free to use.

Does a good backtest mean a strategy will make money?

No. It shows the setup had an edge over the period tested, before costs. Spread, slippage, where you place your stop and whether market conditions change all decide whether that edge survives live trading.

Backtest results are historical and do not include trading costs. Past performance is not a reliable indicator of future results. See our risk disclaimer.

Start today

Ready to trade smarter?

Join traders who've stopped watching charts and started making better decisions.

We use cookies to analyze site traffic and improve your experience. Privacy Policy