Forex backtesting software: how to backtest a forex strategy

GuidesDeutsch

Forex backtesting software: how to backtest a forex strategy

Forex backtesting software is a program that runs a currency trading strategy over historical exchange rates and reports how it would have performed. Good forex backtesting software uses minute or tick data with bid and ask, charges spread, commission and swap like a broker, and never lets the strategy see prices it could not have known.

Updated · Orion Quant Technologies

What makes the best forex backtesting software?

The best forex backtesting software is the one whose results you can trust and repeat, not the one with the most buttons. Four things decide it: the quality of the price data, the fill model, the costs it charges and the tools to test robustness. Everything else is convenience.

CriterionWhy it mattersWhat to check
Data with bid and askEvery forex trade crosses the spreadTick data or minute bars with both sides, and which days are covered
Data resolutionBars hide the order of stop and targetWhether you can choose bars or ticks, and whether the run records which
CostsSmall edges die on costsSpread, commission per lot and side, swap with the triple Wednesday
No lookaheadFuture prices make any strategy look goodSignals on closed bars, fills on later prices
Robustness toolsOne good backtest proves littleOut of sample, walk forward, Monte Carlo
LanguagesYou should not rewrite a strategy to test itThe languages it accepts and what it can export

How do you backtest a forex strategy?

Backtesting a forex strategy follows the same steps as any backtest, with three forex specific settings: the pip value, the swap and the time zone.

  1. Write the rules down: entry, exit, stop, target and position size in lots.
  2. Choose pairs and a period of several years that covers trends, ranges and news shocks.
  3. Pick the resolution: minute bars for most strategies, bid and ask ticks for scalping and tight stops.
  4. Set the costs: spread, commission per lot and side, and swap per lot and night for long and short.
  5. Fix the time zone of sessions and the daily close, including daylight saving changes.
  6. Run and read the trade list, then test on data the parameters were not tuned on.

For the cost side in detail, see spread, commission and swap. For when ticks matter, see tick data backtesting.

How much is a pip worth in a EURUSD backtest?

In a EURUSD backtest one pip is 0.0001, and on one standard lot of 100,000 euros it is worth 10 USD. A 20 pip stop on 1 lot therefore risks 200 USD, and on 0.1 lot it risks 20 USD. The pip value is always in the quote currency, the second one in the pair.

PairOne pipPip value per standard lot
EURUSD0.000110 USD
GBPUSD0.000110 USD
AUDUSD0.000110 USD
USDCHF0.000110 CHF
USDJPY0.011,000 JPY

When the quote currency is not the account currency, the backtest has to convert every profit and loss at the rate of that moment. A USDJPY trade on a USD account earns yen, and its dollar value moves with the exchange rate.

What is different about backtesting forex?

Backtesting forex differs from backtesting stocks because the forex market has no central exchange. Every broker and data provider sees its own stream of quotes, so tick data from two sources never matches exactly, and there is no consolidated volume. A forex backtest is always a test against one particular price feed.

  • Sessions: Asia, London and New York trade with very different ranges and spreads. A rule that works in London can fail in Asia.
  • Rollover: around the daily rollover spreads widen sharply, which hits stops and entries placed at that hour.
  • Swap: positions held overnight pay or earn swap, three nights at once on Wednesday for most pairs.
  • Daylight saving: Europe and the United States change their clocks on different dates, so session times shift against each other for a few weeks each year.
  • Weekend gaps: the market closes on Friday and opens on Sunday evening, and the first price can jump past a stop.

How do forex backtesting platforms compare?

Forex backtesting platforms differ most in where their data comes from, how finely they fill and which costs they charge. The table sets the Orion Quant Technologies Engine beside cTrader, MetaTrader 5 and TradingView, as each platform documents itself (checked 2026-10-01).

FeatureOrion Quant Technologies EnginecTraderMetaTrader 5TradingView
Historical dataOwn archive: minute bars and every tick with bid and askBroker server tick and bar historyM1 bars and real ticks from the broker's serverBuilt in market data, tick history limited
ResolutionOHLC, minute bars or ticks, recorded per runTick, M1 or H1 data per backtestReal ticks, every tick, M1 OHLC, open pricesBar based, finer intrabar detail
CostsSpread, commission per lot and side, swap with triple WednesdayCommission and fixed or random spreadSpread, tiered commission, swap with triple dayCommission and slippage, swap not built in
OptimizationGrid and genetic, walk forwardGrid and geneticComplete search and geneticNo built in optimizer
LanguagesPython, C#, Pine Script, Rust, visual blocksC# and PythonMQL5Pine Script

More detail in MT5 strategy tester alternative, cTrader backtesting and Pine Script backtesting.

How do you backtest forex in the Orion Quant Technologies Engine?

The Orion Quant Technologies Engine has forex built in from our own archive, with minute bars and every tick with institutional bid and ask, and each instrument shows which days are there before you download. A run is computed on OHLC, minute bars or ticks, and records which. Costs are fields: a spread band, commission per lot and side, and swap with the triple rollover on Wednesdays.

You write the strategy in Python, C#, Pine Script, Rust or visual blocks, or describe it in plain language to the AI assistant. An existing cBot or MT5 Expert Advisor is imported and translated by the AI assistant. A strategy that compiles to the engine's own format exports to MetaTrader 5 as an Expert Advisor, to cTrader as a cBot and to TradingView as Pine Script. Grid and genetic optimization, walk forward and Monte Carlo audits are described on the tools page. The engine is in early access through the waitlist.

Frequently asked questions

What is the best forex backtesting software?

The best forex backtesting software for you is the one that tests your strategy on data and costs close to your broker's. Look for bid and ask data at the resolution your stops need, spread, commission and swap as settings, no lookahead, and tools for out of sample and walk forward testing. Then check that it accepts the language your strategy is written in.

Can I backtest forex for free?

Yes. Most trading platforms include a strategy tester, and broker platforms usually come with history from the broker's server. The Orion Quant Technologies Engine has a free plan as well. The limits are usually the depth of history, the data resolution and how much optimization you can run, so check those before trusting a free result.

How many years of data do I need to backtest a forex strategy?

Enough for a few hundred trades across trending, ranging and volatile markets. For an intraday forex strategy that is often two to five years, for a swing strategy on daily bars ten years or more. Include at least one period of sharp moves, such as a central bank surprise, to see how the stops behave.

Why do backtest results differ between forex brokers?

Because the forex market has no central exchange, every broker streams its own quotes with its own spreads. Prices, spread widening at rollover and the timing of the daily close all differ slightly. Tick data from one source therefore never matches another exactly, and a strategy with a small edge per trade can show different results on each.

Research and testing only. A backtest shows how rules behaved in the past, not what they will earn. Nothing here is investment advice.

Orion Quant Technologies