OHLCV data summarises trading in each period with five values: open, high, low, close and volume. It is the standard format for price charts and most backtesting.

Also known as: bar data, candlestick data. Level: Beginner.

In short

  • O, H, L, C: first, highest, lowest and last price of the period.
  • V: total quantity traded in the period.
  • Available for timeframes from seconds to months.
  • Prices must be adjusted for splits and dividends for long-term analysis.

How it works

Each OHLCV bar covers a period, such as one minute, one hour or one day. The open is the first traded price in the period, the high the highest, the low the lowest, and the close the last. Volume is the number of shares, contracts or units traded. Candlestick and bar charts are drawn from these values.

Most technical indicators are calculated from OHLCV data: moving averages from closes, average true range from highs, lows and closes, and indicators such as on-balance volume from closes and volume. Most retail backtesting tools also use OHLCV bars.

Data quality matters. Daily stock data should be adjusted for splits and bonus issues, or charts will show false crashes, and for dividends when calculating total returns. Futures data is often joined from many contracts into continuous series, which can be adjusted in different ways. Missing bars, bad prints and differences in session times between data sources also cause errors.

OHLCV data has limits for testing. Within a bar, you cannot tell whether the high or low came first, so a test that assumes both a stop and a target were reachable may be wrong. It also lacks bid and ask prices, so spreads must be estimated.

Free daily data is widely available from exchanges, brokers and websites; intraday history is often limited or paid. In India, NSE publishes daily bhavcopy files with OHLC prices and volume for listed securities.

Five candlesticks showing open, high, low and close for five days of trading.
Each candle encodes the open, high, low and close; volume is shown separately.

An example with numbers

A stock's daily bar shows open 412, high 425, low 408, close 421 and volume 18 lakh shares. A backtest uses the close for signals and the next day's open for entry.

How it differs by market

Market What to know
India NSE's daily bhavcopy files provide OHLC and volume data for listed securities.

Where people go wrong

  • Using unadjusted prices across splits and bonus issues.
  • Assuming the order of the high and low inside a bar in backtests.

Common questions

What does OHLCV stand for?

Open, high, low, close and volume.

What timeframes are available?

Anything from seconds to months, depending on the data source.

Why adjust prices?

Splits, bonus issues and dividends otherwise distort the history.

What can't OHLCV data show?

The order of moves within a bar and the bid and ask prices.