TradeViora AcademyLearn. Analyze. Practice. Trade Smarter.
Menu

FREE FINANCIAL EDUCATION

Market data structure

Distinguish event time from receipt time and bar labels from availability.

0%

What you will learn

Prerequisites: OHLCV bars, exchange sessions and basic tables or data frames.

Mechanism and decision rules

Market data has both values and semantics. A trade event records an execution price, quantity and timestamp; a quote records available prices and sizes; an OHLCV bar aggregates observations over an interval. A bar cannot reconstruct the exact path of trades inside it. Its label may denote the interval start or end, so the timestamp alone does not establish when its final high, low, close and volume became known.

Store event time, receipt or availability time where available, timezone, session, instrument identifier and adjustment policy. Distinguish a zero-volume observed interval from a missing interval. Contract rollovers and symbol changes require stable identifiers. The data schema should preserve what the strategy could observe at each decision time, including delays and corrections where relevant.

Worked example · synthetic data

A synthetic five-minute bar labeled 09:15 covers 09:15:00 through just before 09:20:00 under a start-label convention. Its final close and volume become available only after 09:20, possibly later due to delivery latency. A strategy acting at 09:16 cannot use that final close.

The bar has O = 100, H = 105, L = 98 and C = 103. Those values fit both a path that hits 105 before 98 and a path that hits 98 before 105. A stop at 99 and target at 104 therefore cannot be ordered reliably from this bar alone.

Failure modes and limits

Vendors can revise historical bars or aggregate sessions differently. Local clock errors and daylight-saving transitions can corrupt joins. OHLCV volume is not volume-at-price and cannot identify aggressive bid/ask flow exactly. Use the minimum granularity needed for the question, but do not invent missing event detail.

Practice case

A one-minute bar labeled 10:00 uses an end-label convention and covers 09:59–10:00. It arrives at 10:00:02. Which timestamp should control a simulation that models actual data availability, and why?

Reveal the worked answer

The finalized bar can first be used at 10:00:02 under the stated receipt model. The 10:00 label identifies the interval endpoint but does not erase the two-second delivery delay. A strategy evaluated earlier would be using information it had not yet received.

Check your understanding

Does OHLC determine whether a stop or target was touched first?


Explanation

Bars retain extrema but discard event ordering.

What does a start-labeled 09:15 five-minute bar imply?


Explanation

The label convention must be paired with the aggregation interval and availability timing.

Why keep instrument identifiers beyond ticker text?


Explanation

Stable identity prevents accidental joins across different securities or expiries.

Sources and next steps

The lesson, calculations and synthetic cases are original educational material. References explain underlying contract or chart conventions; none validates the profitability of a trading rule. Actual contract specifications, settlement obligations and charges must be checked before trading.

Explore OHLCV data in the chart lab · Explore volume-at-price and TPO data · Practice library