OHLCV Data
Published Last updated
Key Takeaway
OHLCV data is the standard five-value candle format — Open, High, Low, Close, and Volume — representing all price and trading activity information for a given period in a single structured record.
Learn These First
What Is OHLCV Data?
OHLCV data is the standard five-value candle format — Open, High, Low, Close, and Volume — representing all price and trading activity information for a given period in a single structured record.
How OHLCV Data Works
Frequently Asked Questions
What does OHLCV stand for and what does each value represent?
OHLCV stands for Open, High, Low, Close, and Volume. Open is the first traded price at the start of the candle period. High is the maximum price reached at any point during the period. Low is the minimum price reached. Close is the last traded price before the period ended — the value most widely used in indicator calculations because it represents the final consensus between buyers and sellers. Volume is the total quantity of the asset traded during the period, reflecting how much market participation occurred. Together, these five values completely describe a period's price behaviour.
How does a trading bot fetch and use OHLCV data from a crypto exchange?
A trading bot fetches OHLCV data using the ccxt library's `fetch_ohlcv()` function, specifying the trading pair, timeframe, and number of candles to retrieve. The exchange returns a list where each element is a six-value array: Unix millisecond timestamp, open, high, low, close, and volume. The data_fetcher module immediately converts this raw list into a pandas DataFrame with labelled columns, converting the Unix timestamp to a human-readable UTC datetime. The resulting DataFrame is then passed to the indicators module, which appends computed indicator values as additional columns alongside the original OHLCV fields.
Why is the Close price used most frequently in technical indicator calculations?
The Close price is used most frequently in indicator calculations because it represents the period's final consensus — the price at which the last willing buyer and seller agreed to transact before the candle period ended. This final price reflects the accumulated decision of all market participants throughout the period and is considered the most representative single value for that candle's price discovery. Indicators such as RSI, EMA, and VWAP primarily use Close values because opening prices and intraday extremes are influenced by temporary conditions, while the close reflects the market's settled view at period end.
Common Misconceptions About OHLCV Data
OHLCV data is only relevant for chart analysis — algorithmic trading bots use different raw data.
OHLCV data is the fundamental input for virtually all algorithmic trading bots, including J21's RSI Signal Bot. Every indicator the bot computes — RSI, SuperTrend, VWAP — is calculated directly from OHLCV columns, primarily the close price. The signal logic evaluates OHLCV-derived indicator values and OHLCV price levels simultaneously. The only trading systems that use different raw data are high-frequency trading bots consuming tick data or order book snapshots — far more complex systems operating at sub-second timeframes far beyond the scope of J21's strategy-based automation.
A larger OHLCV dataset always produces more accurate backtesting results.
Backtesting accuracy depends on data quality and regime relevance, not size alone. A very large OHLCV dataset spanning multiple market cycles provides better statistical significance for performance metrics. However, including data from market regimes fundamentally different from current conditions can distort results — a strategy tested across a 2017 bull market, 2018 bear market, and 2021 cycle simultaneously may produce average metrics that misrepresent how it would perform in any specific regime. Walk-forward validation — testing on recent out-of-sample data — is a more reliable indicator of current edge than simply maximising dataset size.
OHLCV volume represents the number of trades, so higher volume means more individual transactions.
OHLCV volume represents the quantity of the base asset traded during the period — not the number of individual transactions. In Bitcoin trading, volume is measured in BTC, not in number of orders. A single large institutional transaction of 100 BTC contributes more to volume than one thousand retail transactions of 0.1 BTC each, even though the institutional trade is one event and the retail activity is one thousand events. In cryptocurrency markets, volume is also exchange-specific — the volume shown on one exchange reflects only that exchange's activity, not the global trading activity across all venues.