Futures data field guide

Tick Data vs OHLCV Bars: Match the Data to Your Trade Decisions

Find out which intrabar information OHLCV discards, how ticks resolve the order of stops and targets, and why executed sizes still cannot rebuild a queue.

Published · 1,608 words

OHLCV keeps the extremes and drops the path

A tick record marks observed trading at one instant, and one record can represent several trades. OHLCV groups those trades over an interval and reduces them to the opening price, highest and lowest prices, closing price and aggregate volume. The summary is easier to store and scan. It also erases the order of trades within the interval and the smaller events between its prints.

Resolution has to fit the decision. Millions of ticks add little to a daily breakout evaluated after the close, whereas an exit seconds after entry needs much finer evidence. Note when the model has its inputs and when it can send an order. The coarsest history that still preserves those events is enough.

Take a five-minute bar whose price goes from 5,000 to 5,010. A direct climb and a dip to 4,995 followed by a rally can produce the same OHLCV summary. For some rules, the missing path is irrelevant. Others cannot be tested without it.

Read a tick schema literally

In this collection, a derived per-contract tick contains a UTC ts, a float64 price and uint32 trade volume. Those types and meanings belong to this schema. Another feed may reuse the names and mean something else.

Here, bid_sz and ask_sz measure volume that executed at the bid and ask. They are not resting bid or offer sizes. Neither column reconstructs queue depth or the order book, nor tells you how much liquidity remained available to your order; open interest is not included either.

A timestamp can belong to several genuine trades, and the same price can print repeatedly. Use a deterministic sort whenever downstream work requires a stable sequence. Timestamp and price together are not grounds for deduplication unless the documentation defines that pair as a true duplicate key.

See the schema documentation for the field definitions and the extra continuous-series columns. In continuous ticks, price_raw and back_adjustment satisfy price = price_raw + back_adjustment. Decide which price the strategy consumes before drawing comparisons between tick and bar results.

Two identical bars can hide different trades

In a bucket with trades, the open and close are the first and last traded prices. High and low enclose the interval; volume sums contracts and trade_count sums the trades represented by the input records. Two bars can report identical OHLCV values even when one contains hundreds of small trades and the other just a few large ones.

Suppose a long position has a 4,995 stop and a 5,005 target, and one bar spans both. There is no way to infer the first exit from OHLCV. Picking the target because it produces the profitable result uses hindsight. Resolve the interval with finer data or apply a conservative ordering rule, chosen and documented before the test begins.

An omitted bucket usually means there were no eligible trades; it is not, by itself, evidence of damage. If a model requires a regular calendar, insert zero-volume bars and flag them as synthetic. Do not conflate a closed market with a quiet one. A close invented for an empty interval was never available to trade.

Executed volume says nothing about queue position

Volume executed at the bid or ask can describe trade flow. It says nothing about quotes resting in the book. Even after observing a trade at the bid, you cannot tell how many contracts had been waiting there or where your own order would have sat. Labeling these columns as book sizes papers over that missing information.

A subsequent tick establishes that a price traded, not that your order filled there. You still need assumptions for latency, order type, partial fills and slippage. Executed volume by itself cannot estimate market impact. Bars strip away even more evidence because they discard the sequence within each interval.

Volume counts contracts; trade_count counts the trades represented. When that count is positive, dividing volume by it gives an approximate average trade size. That average can inform the analysis without directly measuring resting liquidity.

The decision clock sets the resolution

Slow positioning, long research samples and contract-level studies fit daily bars. Models that act at the end of an hour or 30 minutes can use bars at those intervals. One-minute and five-minute bars retain more of the path without becoming unwieldy across many markets.

Ten-second bars suit decisions on a minute scale, although each bucket still conceals ten seconds of sequencing. Use ticks when trade flow enters the signal or a close exit depends on which trade happened first. For a monthly signal, tick history mostly buys you larger files and slower computation.

Test one rule at two defensible resolutions and reconcile the trades themselves, rather than stopping at the equity curves. A changed return tells you that something moved; the differing trades locate it. If finer data produces large changes, revisit the fill assumptions. Agreement is comforting, but it validates neither execution model.

Contract selection, validation and time-ordered evaluation are covered in the guide to historical futures data for backtesting.

A timestamp is incomplete without alignment rules

An interval label alone does not define a bar. In this dataset, 10s, 1m, 2m, 5m, 30m, 1h and 4h bars align to epoch-based UTC boundaries. Daily bars follow the Chicago 17:00 session across daylight-saving changes. Their labels therefore should not be assumed to align with UTC midnight or to map neatly onto one local date.

These bars are aggregated from back-adjusted continuous ticks and contain ts, open, high, low, close, volume and trade_count. Their adjusted prices can legitimately be negative because the adjustment carries through. Test the OHLC relationships rather than requiring every price to be positive.

Check timestamp alignment and coverage before merging intervals. An hourly bar that is still forming cannot close a five-minute signal, and a daily session's information cannot be assigned to an earlier session. Empty buckets are omitted, which keeps inactivity distinct from an explicitly recorded zero.

One hourly bar, two possible exits

Consider a strategy that buys at the Chicago 17:00 reopen, places its target 20 points above entry and its stop 10 points below. Both exit levels trade inside the first completed hourly bar:

interval          open     high     low      close
17:00–18:00       5000     5025     4988     5012
target            5020
stop              4990

Nothing in that row establishes the order of the exits.

Spend finer data on ambiguous intervals

  1. Flag intervals in which either exit level trades.
  2. Refine just those intervals with smaller bars.
  3. The entry, cost assumptions and tie-breaking policy stay fixed; only the path becomes more detailed.

One-minute bars may resolve the sequence. Suppose the 17:08 bar trades at 4,990, while 5,020 does not appear until 17:31. With these entry assumptions, the stop is first. If the 17:08 bar contains both levels, however, the ambiguity has merely moved to a smaller bucket; ticks may be needed for that interval.

Contrast that with a model that enters after the daily close and exits at the next daily open. Assuming the rest of the fill model still holds, neither decision time depends on the path inside a bar. Daily bars contain enough information for those signals. The market has not changed; the question has.

Both tests still need correct session labels and roll handling. A roll gap in adjusted prices is not automatically an overnight return. Do not manufacture trades for empty intervals around a closure.

Optimize the computation, not the evidence

Tick analysis means more rows, more memory and more grouping work. Restrict reads to the dates and columns required, and reuse one common aggregate when several tests need it. Do not change alignment rules along the way. Bars reduce computation, but an intrabar fill question eventually requires the underlying trades.

A handful of targeted tests will catch most aggregation mistakes:

  • The high must include the open, close and low; the low cannot sit above any of them.
  • Timestamps remain in order, volume and trade count never go negative, and session labels match the calendar.
  • For sampled bars, both volume and trade_count reconcile with the corresponding sums over the source ticks.
  • For continuous ticks, raw price plus the adjustment equals the adjusted price.

An optimization must not change the data's meaning. Timestamp downcasting can shift a bucket boundary. Filling empty intervals can move an indicator, and an unstable sort of equal-time trades can alter the open or close. Build a tiny case with a known answer, then require the faster implementation to reproduce it.

If two resolutions disagree, retain the first order that changed as well as the return difference. Log its interval and the expected and observed sequences, then inspect the raw ticks over that short window. That single order can separate a boundary problem from missing observations or a fill-rule error. The difference in aggregate return cannot.

Stop adding detail when it stops changing decisions

Tick history earns its keep when the model uses individual trades, decisions happen in seconds, or two exits need to be ordered. It shows whether a proposed fill relies on a particular sequence. What it cannot show is queue position. No tape, however fine, guarantees your fill.

Slow allocation models, daily features and signals based on completed bars with distant exits rarely justify tick storage. Well-built bars preserve the required inputs and leave enough computing budget for broader tests. Finer data can even make overfitting easier by supplying more microstructure choices that have no economic rationale.

Take one ambiguous bar from an actual result and examine the finer history. Save what each resolution produces. A changed order decision justifies the ticks. If the decision stays put, keep the bars and use the compute budget elsewhere.