Chapter 1 · Topic 1 · Lesson 1 of 3

Understanding OHLCV Data and Chart Data Sources

2 views90 min readMarket Data and Chart Construction

Understanding OHLCV Data and Chart Data Sources

Technical analysis begins with data, not indicators. Every moving average, momentum oscillator, volatility calculation and volume-based study depends on a historical sequence of observations. If that sequence contains incorrect prices, inconsistent timestamps, duplicated records or misunderstood volume fields, even a mathematically correct indicator can produce misleading output. Learning to inspect the underlying data is therefore one of the most important technical analysis skills.

Most conventional price charts are built from OHLCV records. OHLCV represents open, high, low, close and volume. Each record summarises activity during a defined interval, such as one minute, fifteen minutes, one trading session or one week. These records provide the numerical foundation for chart construction and subsequent indicator calculations.

This lesson focuses on how OHLCV records are created, obtained, organised and verified. It does not revisit candlestick formations, support and resistance, price action structures or classical chart patterns. Those subjects use price observations for different analytical purposes. Here, the emphasis is on data integrity and the technical consequences of selecting a particular source.

1. What an OHLCV Record Actually Represents

Consider a hypothetical stock trading on an Indian exchange. During one completed fifteen-minute interval, the first recorded transaction occurs at ₹502. The highest traded price is ₹509, the lowest is ₹499 and the final transaction occurs at ₹506. Suppose 84,500 shares change hands during that interval.

The resulting record contains five fields: open ₹502, high ₹509, low ₹499, close ₹506 and volume 84,500 shares. The record is associated with an instrument identifier, a trading venue, an interval start or end time and potentially additional metadata.

The interval is essential. A close of ₹506 on a fifteen-minute chart means the final price recorded for that fifteen-minute interval. It does not necessarily represent the official daily closing price. Likewise, volume of 84,500 represents activity within the selected interval, not necessarily the full day's trading.

OHLCV values are summaries rather than complete transaction histories. Two intervals can have identical open, high, low, close and volume values while containing very different sequences of individual trades. Technical indicators calculated from OHLCV cannot recover every detail that was lost during aggregation.

2. Understanding the Five Data Fields

The open is the first eligible price observation within the defined interval. The high and low are the maximum and minimum eligible prices recorded during that interval. The close is the final eligible price. Volume is the quantity traded, generally expressed in shares or contracts depending on the instrument.

The word eligible matters because data providers may apply exchange-specific conventions. An official daily close may be calculated through a closing-price methodology rather than simply using the final visible transaction. Some vendors provide an exchange-defined official close, while others aggregate intraday transactions into their own daily bars.

For reliable analysis, the user must understand which definition a provider uses. An apparently small difference in closing prices can affect a moving average, an RSI calculation or the timing of a threshold crossing.

3. The Basic Integrity Relationships

For an ordinary OHLC record, the high should be at least as large as both the open and close. The low should be no greater than either the open or close. The high should also be greater than or equal to the low.

These simple relationships are useful validation checks. If a record reports an open of ₹520, a high of ₹515 and a close of ₹518, the data are internally inconsistent unless the fields have been transformed or interpreted incorrectly.

Volume should normally be nonnegative. A zero-volume bar requires investigation because its meaning depends on the market and source. It may represent a genuine interval without trades, a synthetic carried-forward observation or a data-processing convention.

4. Original Diagram: OHLCV Records Behind a Price Chart

OHLCV price chart with corresponding volume panel Eight candlesticks appear above a volume histogram. The fifth candle is highlighted and its open, high, low, close and volume are identified in a separate information box. Price and Volume From the Same Records Selected interval Open: ₹502 High: ₹509 Low: ₹499 Close: ₹506 Volume: 84,500 Volume panel Each price bar and volume column represents one matching time interval.
Original educational illustration showing how price observations and volume belong to the same time interval. The numerical information box is hypothetical and demonstrates the record structure rather than the exact chart scale.

5. OHLCV as a Time Series

A chart is not simply a collection of independent OHLCV records. It is an ordered time series. The ordering determines which observation comes before another, how rolling calculations are performed and when information becomes available.

Each record should therefore have a reliable timestamp. The analyst must know whether the timestamp identifies the beginning or the end of the interval. A bar labelled 10:00 may represent trading from 10:00 to 10:15 on one platform, while another platform may label the same interval by its completion time.

These conventions become important when comparing two charting platforms or calculating indicators outside the original application.

6. Completed and Developing Records

A completed interval has a final open, high, low, close and volume according to the provider's methodology. A developing interval is still receiving new transactions. Its high, low, close and volume can continue changing until the interval ends.

Suppose a fifteen-minute bar currently shows a close of ₹512 at 10:08. If the interval finishes at 10:15, ₹512 is only the latest available price, not the final close. An indicator calculated from the developing bar may change before completion.

For historical comparison, it is essential to distinguish completed values from provisional live values. Otherwise, an indicator condition that appeared during a developing interval may be incorrectly recorded as a confirmed historical observation.

7. How Intraday Records Become Daily Records

When intraday records are aggregated into a daily record, the daily open generally comes from the first eligible intraday observation, the daily high is the maximum high, the daily low is the minimum low and the daily volume is the sum of eligible interval volumes.

The daily close follows the applicable market or provider convention. It may not be identical to the final intraday transaction if the exchange uses a separate official closing-price calculation.

Aggregation should also respect the trading session. Combining the final interval of one day with the opening interval of the next can create an invalid daily record.

8. Original Diagram: Intraday Aggregation Into a Daily Bar

Aggregation of intraday price bars into a daily OHLCV record Six intraday candlesticks and matching volume columns appear on the left. An arrow points toward one aggregated daily candlestick and total-volume column on the right. From Intraday Intervals to a Daily Record Intraday records Daily record Open: first eligible price | High: maximum | Low: minimum | Close: official convention | Volume: sum
Multiple intraday observations are aggregated into a daily summary. The official daily closing convention and session boundaries must be respected.

9. Understanding Chart Data Sources

Technical analysts obtain price data from several types of providers. Exchanges publish official market information. Brokers supply trading-platform feeds. Charting services distribute data from exchanges, vendors or partner systems. Independent data vendors may provide downloadable historical records, corporate-action information and specialised datasets.

These sources can differ in licensing, coverage, update frequency, timestamp conventions and adjustment methods. A charting platform is not necessarily the original creator of the underlying market data.

Before using a source, identify the exchange, instrument, data delay and whether the series represents transactions, indicative quotations, consolidated information or another category.

10. Official Exchange Data

Exchange-originated information is an important reference for instrument identifiers, trading calendars, official daily statistics and corporate actions. However, an exchange may distribute different products for real-time, delayed and historical data.

Access conditions and field definitions can vary. An analyst should not assume that every downloadable exchange file contains the same information as a live professional market feed.

11. Broker Data Feeds

Broker platforms commonly provide price charts and historical intervals suitable for their supported markets. These feeds are convenient because they are integrated with instrument selection, watchlists and trading interfaces.

Nevertheless, a broker may use a particular vendor, retain limited intraday history or apply its own aggregation conventions. Two brokers displaying the same instrument can occasionally show different historical bars.

When differences matter, compare the underlying source information and official market records rather than assuming that the more visually attractive chart is correct.

12. Charting Platforms and Data Vendors

Dedicated charting platforms often support multiple exchanges and instrument categories. They may provide indicator libraries, custom scripts and historical exports. The analyst should distinguish platform functionality from the reliability of the specific data subscription being used.

For example, a platform may offer excellent chart tools while displaying delayed quotes for a particular exchange. A different market on the same platform may have a real-time feed. The analyst must verify the entitlement and timestamp relevant to the selected instrument.

13. Instrument Identification

A ticker symbol alone may be insufficient to identify a financial instrument. Similar symbols can exist on different exchanges, and companies may change names or symbols. Futures contracts also require an expiry identifier, while options require additional contract specifications.

A reliable dataset should include enough information to distinguish the exact instrument, venue and contract. Historical continuity should not be assumed when symbols change or contracts expire.

14. Last Traded Price Versus Official Close

Some chart differences arise because the displayed closing value represents the last traded price, while another source uses an official exchange closing methodology. These values can be close without being identical.

For indicators based on closing prices, the distinction matters. The analyst should choose one consistent convention for comparable calculations and document it in the research record.

15. Volume Units and Market Differences

For an equity, volume commonly represents shares traded. For a futures contract, volume commonly represents contracts. Some markets or data services provide tick volume, which counts updates or transactions rather than traded units.

These quantities should not be treated as interchangeable. Comparing 100,000 shares with 100,000 futures contracts without considering contract specifications produces an invalid comparison.

16. Volume Versus Turnover

Volume measures quantity. Turnover measures monetary value traded. A stock trading 50,000 shares at approximately ₹100 has a different turnover from one trading 50,000 shares near ₹1,000.

Technical analysts should verify whether a displayed volume-related field contains units traded, traded value or another measure. The distinction becomes particularly important when combining data from different instruments.

17. Data Latency

Data latency is the delay between a market event and its availability to the analyst. A chart may display live updates, delayed updates or historical records refreshed periodically.

Latency should be recorded when analysing intraday conditions. A chart labelled with the current clock time does not necessarily mean its latest market observation is equally current.

18. Original Diagram: Two Data Sources With Different Closing Values

Comparison of price records from two chart data sources Two small candlestick charts show similar historical prices but a different final close. An information panel identifies the discrepancy and lists checks for instrument, timestamp and closing-price convention. Data Source Comparison Source A: close ₹506.20 Source B: close ₹505.75 Before choosing a source, compare: Instrument identifier • Exchange • Session • Timestamp • Adjustment convention Official closing methodology • Data delay • Missing or corrected records
A difference between data sources is a reason to investigate field definitions and provenance, not automatically evidence that one platform is defective.

19. Data Corrections and Revisions

Historical datasets are not always immutable. Exchanges or vendors may correct erroneous trades, revise official values or update corporate-action adjustments. A chart viewed today may therefore differ slightly from an earlier exported version.

For serious analysis, record the data retrieval date and provider. If a result depends on a specific historical value, retaining a dated copy makes later investigation possible.

20. Detecting Duplicate Records

Duplicate timestamps can distort indicator calculations. If a data-processing script mistakenly includes the same daily record twice, a moving average may treat one trading session as two separate observations.

A basic validation process should check for repeated instrument-and-timestamp combinations. Duplicates should be investigated before removal because some datasets contain multiple legitimate record types for the same date.

21. Detecting Impossible Values

Validation should identify high values below low values, negative traded quantities, impossible timestamps and unexpected extreme prices. Such anomalies may result from formatting errors, currency mismatches or incomplete corporate-action processing.

Not every extreme price is incorrect. Genuine market gaps and exceptional events can occur. The analyst should compare suspicious records with authoritative references before altering them.

22. Detecting Unexpected Gaps

A missing record may represent a market holiday, suspension, lack of trading or a provider outage. These possibilities have different analytical implications.

The correct response is to inspect the exchange calendar and source documentation. Automatically filling every missing interval with a copied closing price can create synthetic observations that were never traded.

23. Data Completeness and Indicator Warm-Up

Many indicators require a minimum history before producing meaningful values. A 200-period moving average requires sufficient observations to establish its initial calculation. Indicators using smoothing may also depend on earlier values.

If a platform displays an indicator after only a short visible chart history, it may be using additional hidden historical observations. Another platform calculating from only the displayed data may produce different early values.

These differences should be understood before comparing indicator outputs.

24. Price Precision and Rounding

Providers may store prices with different decimal precision or round displayed values. Small differences can accumulate in repeated calculations, particularly when indicators use smoothing.

The analyst should retain the original numerical precision during computation and round only for presentation where practical. Premature rounding can introduce avoidable discrepancies.

25. Time Zones and Timestamp Normalisation

Financial markets operate in different time zones. A timestamp stored in Coordinated Universal Time may appear as a different calendar date when converted to the exchange's local time.

Daily and weekly aggregation should follow the relevant exchange calendar rather than the analyst's computer time zone. Otherwise, observations near midnight may be assigned to the wrong trading date.

26. Building a Basic Data Quality Checklist

Check Question Potential consequence
Instrument Is the correct exchange and contract selected? Analysis of the wrong series
Timestamp Are interval labels and time zones consistent? Misaligned observations
OHLC validity Are price relationships internally consistent? Distorted price calculations
Volume Are quantity units clearly defined? Invalid volume comparisons
Completeness Are missing sessions explained? Incorrect rolling calculations
Adjustment Is the historical adjustment policy known? Artificial historical price changes
Latency Is the latest observation current or delayed? Incorrect live-state interpretation

27. Why Data Quality Matters for Moving Averages

A moving average uses a sequence of prices, commonly closing prices. If one close is incorrect, that observation influences every calculation window containing it. The effect may persist for multiple periods.

Different closing-price conventions or missing records can therefore produce different moving average values even when the same period setting is selected.

28. Why Data Quality Matters for Momentum Indicators

Momentum indicators such as RSI and MACD depend on price changes across time. A single erroneous price can introduce an artificial gain or loss and influence subsequent smoothed values.

The analyst should investigate unusually large indicator changes before interpreting them as meaningful market information.

29. Why Data Quality Matters for Volatility Indicators

ATR and other volatility tools use historical price ranges or price dispersion. An incorrect high or low can exaggerate measured volatility.

A missing session or incorrectly adjusted price can also create an artificial gap. This is particularly important when evaluating volatility around corporate actions.

30. Why Data Quality Matters for Volume Indicators

Volume-based indicators depend on both price and traded quantity. A missing volume field, inconsistent units or duplicated session can distort cumulative measures such as OBV.

For that reason, price validation alone is insufficient when the intended analysis includes volume indicators.

31. Selecting a Primary Research Source

A practical research workflow should use one clearly identified primary source for each instrument and market. A secondary source can be used for verification when an anomaly appears.

Switching sources repeatedly without documenting the change can create inconsistent historical calculations. The objective is not to find a universally perfect provider but to maintain traceable and suitable data for the intended analysis.

32. Recording Source Metadata

Each exported dataset should include or accompany the provider name, instrument identifier, exchange, interval, time zone, adjustment convention, retrieval date and relevant data limitations.

This metadata helps explain why two calculations differ and makes it possible to reproduce an earlier study.

33. Practical Exercise: Audit a Historical Dataset

Obtain a historical OHLCV dataset for a selected instrument using a permitted data source. Inspect the first and last timestamps, count the observations and compare the trading dates with the relevant exchange calendar.

Check for duplicate timestamps, invalid OHLC relationships and unusual volume values. Select three historical dates and compare their records with a second reliable reference. Document every discrepancy and its possible explanation.

34. Practical Exercise: Compare Two Charting Platforms

Open the same instrument, exchange, interval and historical date range on two charting platforms. Record the displayed open, high, low, close and volume for several completed intervals.

If differences appear, investigate the data feed, closing-price convention, time zone, session settings and corporate-action adjustments. Do not assume that identical indicator settings guarantee identical results when the underlying records differ.

35. Final Understanding

OHLCV data are the numerical foundation of conventional technical charts. Their usefulness depends on correct instrument identification, reliable timestamps, understood field definitions and consistent handling of missing or revised information.

Technical analysis becomes more reproducible when the analyst can explain where the data came from and how each chart observation was constructed. Indicators should be treated as calculations performed on that data, not as independent sources of market truth.

Key Takeaways

  • OHLCV represents open, high, low, close and volume for a defined interval.
  • OHLCV records are summaries of trading activity, not complete transaction histories.
  • Interval timestamps and official closing conventions can differ between providers.
  • Developing bars must be distinguished from completed observations.
  • Daily aggregation requires correct session boundaries and field definitions.
  • Exchange, broker and charting-platform data may differ in coverage and methodology.
  • Volume units depend on the instrument and market.
  • Duplicate records, missing sessions and incorrect values can distort indicators.
  • Data provenance and retrieval dates improve research reproducibility.
  • Reliable technical analysis begins with validated data rather than indicator interpretation.

Educational Disclaimer

This Onetrader Academy lesson is for educational and informational purposes only. It is not investment or trading advice or a recommendation to buy or sell any security. All numerical examples and chart illustrations are hypothetical. Trading and investing involve risks including volatility, slippage, transaction costs, price gaps and potential financial losses. Onetrader is not registered with SEBI as an investment adviser or research analyst.

Share this lesson
© OurPaisa.com & Onetrader.in — All Rights Reserved. This educational content, including original text, examples, diagrams, illustrations, charts, assessments and learning materials, is proprietary content of OurPaisa.com and Onetrader.in. Reproduction, copying, republication, redistribution or commercial reuse of this content or substantial portions of it is not permitted without prior written permission.

This lesson is available to read online at OneTrader Academy (onetrader.in/academy). © OurPaisa.com & Onetrader.in — All Rights Reserved.

Test yourself: Technical Analysis examsTimed stock market exams with instant results and a certificate. Launch offer: from ₹49.
Take an Exam →
Grow your business: advertise on onetrader.in