Real Ticks vs Every Tick in MT5: How to Test Gold EAs More Realistically
Publisher: PK Tech Solutions
Backtesting a gold Expert Advisor (EA) on XAUUSD in MetaTrader 5 (MT5) depends not only on its trading rules but also on the price data used by the Strategy Tester. Identical EA settings can produce different results when the tick modelling mode changes. This guide explains why and how to conduct a controlled comparison.
What is a tick?
A tick is a market data update, such as a change in bid or ask. Ticks need not arrive every second. A one-minute (M1) candle summarizes its open, high, low and close (OHLC), but does not describe the entire sequence of price changes. Event-driven EAs may therefore behave differently even when candle values match.
Every Tick vs Every Tick Based on Real Ticks
Every tick generates a simulated price sequence from minute-bar data according to the tester's modelling rules. Every tick based on real ticks uses historical ticks supplied by the broker where usable data exists, with generated ticks potentially filling gaps. The mode name alone does not establish that every tick is genuine historical tick data.
Generated ticks use the minute bar's spread, which remains fixed within that minute. Real ticks can reflect changing bid and ask prices within the minute. More detailed historical data does not guarantee that simulated execution will reproduce live fills.
| Feature | Every Tick | Real Ticks |
|---|---|---|
| Data source | Generated from M1 bars | Broker tick history, with fallback where necessary |
| Price sequence | Simulated according to modelling rules | Recorded sequence where available |
| Spread within M1 | Fixed | Can vary |
| Time and computing resources | Depend on data and EA | Depend on data volume and EA |
| Guarantees live results | No | No |
Engineering example: identical OHLC, different outcomes
Consider a hypothetical candle with open 4000, high 4003, low 3998 and close 4001. A long position opens at 4000 with take profit (TP) at 4002 and stop loss (SL) at 3999. Assume prices pass through the specified levels, with no spread, fees or execution price differences.
- Path A: 4000 → 3999 → 3998 → 4003 → 4001. The stop loss is reached first.
- Path B: 4000 → 4002 → 4003 → 3998 → 4001. The take profit is reached first.
With a hypothetical contract size of 100 ounces per lot and a volume of 0.01 lot, exposure equals one ounce. Outcome A = (3999 − 4000) × 1 = −USD 1. Outcome B = (4002 − 4000) × 1 = +USD 2. The difference is USD 3 before costs.
These illustrative paths demonstrate sensitivity to intrabar price ordering. They are not actual MT5-generated sequences, historical quotes or product backtest results.
Why tick modelling matters for automated strategies
- Grid EAs: the sequence of price-level crossings can affect order counts, entry timing and accumulated exposure.
- Hedge EAs: intrabar reversals can change net exposure and basket costs. Hedging does not erase existing losses.
- Scalping EAs: small targets can be sensitive to spread and bid/ask sequencing.
- Trailing stops: the timing of a price extreme relative to a reversal can affect stop adjustments.
Even an EA that generates signals only on new candles may manage orders or stops within a candle, resulting in different outcomes.
How to conduct a controlled A/B test in MT5
- Open Strategy Tester and select the same EA version and broker-specific gold symbol.
- Keep timeframe, date range, initial deposit, account currency, leverage and EA inputs identical. Disable optimization.
- Check contract size, point, tick size, commission, swap and execution-delay settings. Use a fixed delay setting to control that variable.
- Run test A using Every tick and test B using Every tick based on real ticks. Change only the modelling mode.
- Save both reports and journals. Inspect messages about missing or inconsistent historical data.
- Compare trade counts, net profit, maximum equity drawdown and the first divergent entry or exit. Repeat across other market periods without retuning inputs to each result.
Measuring the difference
Let P_A and P_B denote the net profit of tests A and B. The absolute monetary change is ΔP = P_B − P_A. When P_A is nonzero, a signed relative change can be reported as 100 × (P_B − P_A) / |P_A|. State the reference value and sign convention. If the baseline is close to zero, emphasize the monetary difference rather than a potentially misleading percentage.
For example, suppose A earns USD 200 and B earns USD 120. The difference is −USD 80, or −40% relative to the magnitude of A's profit. If maximum equity drawdown is USD 150 and USD 240 respectively, the increase is USD 90. These are hypothetical values, not measured backtest results, and do not establish which mode is generally more profitable.
Inspect the first divergent trade and consider price ordering, spread and order conditions. Changing modelling mode can change both price sequencing and spread behaviour, so a single A/B comparison cannot isolate their individual effects.
Does 100% History Quality mean every tick is real?
History Quality in the MT5 testing report concerns minute-bar data quality under the platform's criteria. It is not a direct measure of the percentage of genuine recorded ticks. Review the tester journal as well, and record the broker, symbol, test period and software version for reproducibility.
Frequently asked questions
Are real ticks always better? They are useful for studying sequence-sensitive behaviour when suitable historical data exists. Data quality varies across brokers and periods.
Is Every Tick still useful? It can support preliminary behavioural tests and parameter comparisons, provided its simulated price-sequence limitations are understood.
Why can live results still differ? Liquidity, execution delays, order rejection, actual fills and trading costs can differ from the simulation.
Which results should be used to evaluate an EA? Consider both modes alongside out-of-sample evaluation and demo testing. Historical performance cannot guarantee future outcomes.
Conclusion
Tick modelling is an experimental quality-control decision, not a guarantee of profitability. Recording test conditions and investigating divergent trades helps reveal system limitations beyond headline net profit.
Further reading: How to backtest a gold EA, Gold EA slippage, MT5 Profit Factor and Recovery Factor, and the Thai-language demo testing guide.
Explore product information and licensing requirements at the official PK Tech Solutions website.
References
- https://www.metatrader5.com/en/terminal/help/algotrading/tick_generation
- https://www.metatrader5.com/en/terminal/help/algotrading/testing
- https://www.mql5.com/en/docs/runtime/testing
- https://www.metatrader5.com/en/terminal/help/algotrading/testing_report
- https://www.metatrader5.com/en/terminal/help/algotrading/tester_journal
Trading involves risk. Automated trading software does not guarantee profits. Numerical examples are hypothetical. This article was prepared with AI assistance. MetaTrader and MQL5 are third-party trademarks; no affiliation with or endorsement by MetaQuotes is implied.