Optimization

Multi-Market and Multi-Timeframe Optimization

Testing one rule set across several instruments and timeframes reveals whether an edge is general or local. How to normalise parameters, read the results and decide when specialisation is justified.

By AlgoXP3 min readUpdated

Equity curves of one strategy on six markets and timeframes

A strategy that works on one instrument, one timeframe and one period can be a discovery or a coincidence. Testing the same idea on several markets and timeframes is one of the fastest ways to tell the difference. It also builds portfolios that are less dependent on a single market’s mood.

Why test beyond one market

Robustness check. Real market effects - trends persisting after breakouts, prices reverting after extreme moves, activity concentrating at session opens - are usually not unique to one symbol. If a trend-following rule works on gold but fails on silver, oil and major indices, it may have fitted gold’s history rather than captured trend behaviour.

More data. Five markets provide five times as many trades, which makes statistics more reliable without reaching further back in time.

Diversification. Strategies on markets with low correlation draw down at different times. A combined equity curve is usually smoother than any single one.

Normalise before you compare

Markets differ in price level, volatility and tick size. Fixed values like “stop 200 points” mean very different things on EURUSD and on gold. Use parameters that scale with the market:

  • Volatility-based distances - stops, targets and grid spacing in multiples of ATR.
  • Percent moves instead of points.
  • Risk in percent of equity per trade, so position size adapts to each market’s volatility.
  • Session times defined in each market’s own trading hours.

With normalised parameters, the same rule can be tested fairly across very different instruments.

How to run a multi-market test

  1. Choose a group of related markets where the logic should apply - for example, liquid FX majors, or metals and energy, or major indices.
  2. Fix the rules and default parameters before testing.
  3. Run the same settings on every market and timeframe in the group.
  4. Record results in a matrix:
Market H1 PF H4 PF Trades (H1)
XAUUSD 1.45 1.52 310
XAGUSD 1.21 1.38 280
US500 1.30 1.12 260
EURUSD 0.97 1.08 340
USDJPY 1.18 1.25 300
  1. Read the pattern, not the best cell. Here the strategy is positive on most markets and both timeframes, strongest on metals, weakest on EURUSD. That is the profile of a real but modest trend effect.

Multi-timeframe behaviour

The same logic on H1, H4 and D1 is effectively three related strategies. Look for:

  • Consistency - results that improve or degrade smoothly across timeframes are more believable than one isolated good timeframe.
  • Trade count - higher timeframes produce fewer trades; make sure each still has enough to judge.
  • Costs - lower timeframes pay spread and commission far more often. A strategy that only works on M5 may simply be on the edge of its costs.

Many platforms let you treat the timeframe itself as an optimisation parameter. That is useful for exploration, but read it the same way: a single winning timeframe surrounded by losers is a warning.

When specialisation is justified

Some strategies are legitimately market-specific:

  • a session-breakout strategy built around the London open on gold;
  • a carry-based strategy that depends on a particular interest rate differential;
  • a strategy exploiting the opening behaviour of one index.

In those cases, the reason for the specialisation should be clear before testing, and robustness checks move to other dimensions: different years, nearby parameters, higher costs, walk-forward analysis.

Building a small portfolio

If a strategy works on several markets, running it on a group of them can improve risk-adjusted results:

  • Allocate the same risk per trade on each market.
  • Check the correlation of monthly returns; markets that always lose together add risk, not diversification.
  • Limit total open risk across all positions, so a broad market shock does not hit every position at full size.
  • Run Monte Carlo simulation on the combined trade list to see the portfolio’s drawdown range.

Common mistakes

  • Optimising each market separately with fine steps and calling the result a robust multi-market strategy.
  • Dropping the losers after the test and reporting only the markets that worked.
  • Ignoring correlation - five FX pairs that all depend on the US dollar behave like one market in a dollar shock.

Key takeaways

  • Testing one rule set across markets and timeframes separates general effects from local coincidences.
  • Normalise parameters with volatility and percent-based measures.
  • Read the matrix of results for consistency, not for the single best cell.
  • Specialise only for reasons you can explain before testing.

Related: parameter stability analysis and best practices for robust optimisation.

FAQ

Should one strategy work on every market?

No. Different markets have different behaviour - trend persistence, volatility, session structure. But if the logic is general (for example, trend following), it should show at least some edge on several similar markets. Working on exactly one symbol is a warning sign.

Is it fine to use different parameters per market?

Yes, if the differences are explainable - for example, a wider stop for a more volatile instrument - and if the settings come from stable regions. Unrelated, finely tuned settings per symbol usually mean overfitting.

How do I combine several markets in one test?

Run the same rules with the same risk per trade on each market and add the trade results together. Look at the combined equity curve, the correlation between markets and how many markets are profitable.

Sources and further reading

  1. cTrader Help: Optimise a cBot (Timeframe as a parameter) - help.ctrader.com
  2. Bailey et al.: The Probability of Backtest Overfitting - papers.ssrn.com