All indicators

Volume Profile

Jan 19, 2024

Static chart image
Support and ResistanceVolume BasedLiquidity

The Volume Profile indicator generates volume profiles to visualize trading volume by price level, identifying key interest areas like the Volume Point of Control (VPOC) and High Volume Nodes (HVN). It offers a structural view of market activity over user-defined timeframes to help traders pinpoint significant liquidity zones.

Usage

The Usage section describes how the script can be used to interpret market structure through volume distribution.

  • Identifying Value Areas: By aggregating volume at specific price levels rather than time intervals, the indicator highlights where the most significant trading activity occurred.
  • VPOC Analysis: The Volume Point of Control represents the price level with the highest traded volume. Users can extend recent VPOCs to the right of the chart to serve as potential support or resistance levels for future price action.
  • Identifying HVNs: High Volume Nodes represent peaks in volume distribution. These can be displayed as boxes (Areas) or lines (Levels). The "HVN Strength" setting allows users to filter for more significant nodes by requiring a level to have higher volume than a specified number of surrounding rows.
  • Visual Customization: The "Profile Extend %" determines how far the profile shape stretches horizontally, while "Resolution Timeframe" allows users to define the granularity of the data used to construct the profile (e.g., using 1-minute data to build a Daily profile).

Details

The indicator constructs profiles by aggregating volume from a lower "Resolution Timeframe" into a higher "Profile Timeframe." It operates on the assumption that a candle's volume is distributed uniformly across its range, providing a computationally efficient estimation that closely mirrors standard exchange-provided volume profiles.

To optimize performance and visual clarity, the script utilizes Pine Script polylines. This allows for the rendering of complex volume shapes without hitting the traditional limitations associated with large numbers of individual line or box objects. Because the script processes significant amounts of lower timeframe data, users may need to adjust the "Rows" setting or disable specific features if execution limits are reached on highly volatile instruments.

Settings

Volume Profile

  • Rows: Defines the number of horizontal price levels used to calculate the profile. Higher values increase detail but require more processing power.
  • Profile Timeframe: Sets the aggregate period for which a single profile is generated (e.g., Daily, Weekly).
  • Resolution Timeframe: The lower timeframe data used to build the profile. Lower settings (e.g., 1m) provide higher accuracy.
  • Profile Extend %: Adjusts the horizontal width of the profile visualization.
  • Profile Color: Sets the color and transparency of the volume profile shape.

Volume Point of Control

  • Show VPOC: Toggles the visibility of the primary point of control for each session.
  • Extend Last N VPOCs: Extends a specific number of previous VPOC levels to the right of the chart.
  • Show Labels Above: Annotates extended VPOCs with their respective dates when the profile timeframe meets or exceeds this setting.
  • Label Size: Sets the font size for VPOC date labels.
  • Line Width: Adjusts the thickness of the VPOC lines.

High Volume Nodes

  • Show Previous HVNs: Enables the display of high-activity nodes from the preceding session.
  • HVN Strength: Filters nodes; a node is valid if it has more volume than "N" rows above and below it.
  • HVN Type: Switches between "Areas" (boxes covering the node's range) or "Levels" (lines at the node peak).
  • Line Width: Sets the thickness for HVN lines when the "Levels" type is selected.

FAQ

What is the difference between VPOC and HVN? The VPOC is the single price level with the highest volume for the entire profile, whereas HVNs are local peaks in volume distribution that represent multiple areas of high interest.

Why does the indicator sometimes take a few moments to load? The script aggregates data from lower timeframes to ensure accuracy. If you experience slow loading, try reducing the "Rows" count or increasing the "Resolution Timeframe."

How can I access the Volume Profile tool? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

Free indicator

Get free access to this indicator on the platforms below.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.