Tick data backtesting: OHLC vs every tick with bid and ask

GuidesDeutsch

Tick data backtesting: OHLC vs every tick with bid and ask

Tick data backtesting is testing a trading strategy on every recorded price change instead of on bars. Each tick carries a bid and an ask, often with the size at the best price, so the backtest knows the order in which prices traded and fills every order at the price a broker would have quoted.

Updated · Orion Quant Technologies

What is tick data in trading?

Tick data is the record of every price update in a market, each with its own timestamp. In forex and CFDs a tick is a quote: a new bid, a new ask, or both, often with the volume available at those prices. A one minute bar compresses all the ticks of that minute into four numbers: open, high, low and close.

A busy currency pair can print many ticks in a single second during a news release and only a handful in a quiet minute. That uneven rhythm, and the spread moving with it, is exactly what bars hide.

OHLC vs tick data: what is the difference in a backtest?

The difference between OHLC and tick data in a backtest is the path inside the bar. An OHLC bar gives the four extreme points but not the order they came in, so when a stop and a target both lie inside the same bar, a bar based backtest has to guess which one was hit first. Tick data shows the real sequence.

A worked example

A long trade on EURUSD enters at 1.1000 with a stop at 1.0980 and a target at 1.1020, 20 pips each way. The next minute bar has a high of 1.1030 and a low of 1.0970, so both levels were touched. If the low came first the trade lost 20 pips, if the high came first it won 20 pips. On 1 lot, where 1 pip is 10 USD, that is the difference between minus 200 USD and plus 200 USD: a swing of 400 USD from one guess.

DataWhat the backtest seesGood for
Daily or hourly OHLC barsFour prices per bar, no path inside itSwing and position strategies with wide stops
Minute bars (M1)Four prices per minute, a much finer pathMost intraday strategies, as a default
Ticks with bid and askEvery quote in order, with the real spread at each momentScalping, tight stops, breakouts and news trading

Why backtest with bid and ask instead of one price?

Backtesting with bid and ask matters because every trade crosses the spread. A buy opens at the ask and closes at the bid, a sell opens at the bid and closes at the ask. Most charts show only the bid, so a backtest on bid prices alone undercharges every long entry and can miss the stops of short trades.

Short positions are the classic trap. The stop loss of a short triggers on the ask, which sits above the bid. When the spread widens, for example around the daily rollover or a news release, the ask can reach the stop while the bid chart never touches it. A backtest with real bid and ask closes that trade, a bid only backtest keeps it open.

When do you need tick data for a backtest?

You need tick data for a backtest when the profit per trade is small compared with the range of a bar or with the spread. Scalping, stops and targets only a few pips away, stop entries on breakouts and trading around news all depend on what happened inside the minute.

  • Scalping and tight stops: the outcome of a trade is decided inside a single bar.
  • Breakout and stop entries: the fill depends on how fast the price moved through the level.
  • News trading: spreads widen and prices jump, and bars smooth both away.
  • Minute bars are usually enough for strategies that hold for hours or days with stops much wider than one bar's range.

A practical check: run the strategy on minute bars and on ticks over the same period. If the two results differ a lot, the strategy is sensitive to the path inside the bar, and only the tick result counts.

What does every tick mean in a strategy tester?

Every tick in a strategy tester means the backtest processes each price update instead of one event per bar. Testers differ in where those ticks come from: some replay ticks recorded from the market, others generate ticks from minute bars, which looks like tick data but only follows a modelled path between open, high, low and close.

MetaTrader 5 offers modes for real ticks, every tick, M1 OHLC and open prices. cTrader lets you choose tick, M1 or H1 data per backtest. TradingView backtests are bar based, with finer intrabar detail and tick charts. (Checked on each platform's documentation, 2026-10-01.) Whatever the tool, check which mode a result was computed on before you trust it.

How does tick data backtesting work in the Orion Quant Technologies Engine?

The Orion Quant Technologies Engine has three fill accuracy tiers: OHLC for a quick look, minute bars as the default, and institutional ticks with bid, ask and the size at the best price. Every run records which tier it was computed on, so a result never hides its resolution.

The market data comes from our own archive for forex, metals, indices, crypto, equities and CFDs: minute bars and every tick with institutional bid and ask. Each instrument shows which days the archive holds before you download. Bid and ask size come with every tick, and the engine flags an entry larger than the size at the touch. Every run replays on the chart it was computed from, with every entry, exit and fill. Which plans include tick data is on the pricing section, and the engine is in early access through the waitlist.

Frequently asked questions

Is tick data backtesting more accurate than OHLC?

Tick data backtesting is more accurate whenever the result depends on what happened inside a bar, such as whether the stop or the target was hit first, or the exact spread at entry. For strategies with wide stops that hold for days, minute or hourly bars usually give nearly the same result much faster. Run both and compare to find out which case you are in.

What is the difference between tick data and M1 data?

M1 data stores one bar per minute: open, high, low and close, sometimes with a volume. Tick data stores every quote inside that minute, each with its own time, bid and ask. Minute bars are enough for most intraday strategies, while ticks settle the order of prices within the minute and show the spread as it really moved.

Why do my short trades stop out live but not in the backtest?

Often because the backtest used bid prices only. A short position opens at the bid but closes at the ask, so its stop triggers when the ask reaches the level. When spreads widen around rollover or news, the ask touches stops that the bid chart never shows. A backtest on real bid and ask data reproduces those exits.

How much tick history do I need for a backtest?

Enough for a few hundred trades across calm and volatile periods, the same rule as for any backtest. A scalping strategy that trades several times a day reaches that in a year or two of ticks. For slower strategies, use minute bars for the long history and ticks to check the stretches where the exact fill matters.

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