All indicators

Volume Profile

Sep 15, 2020

Static chart image
Support and ResistanceVolume BasedLiquidity

The Volume Profile indicator provides a comprehensive visualization of trading activity over a specified period, mapping volume distribution across various price levels to identify key areas of liquidity and market interest.

Usage

The Volume Profile is used to identify support and resistance zones based on historical trading volume. Traders can use this tool to spot the Point of Control (POC), which represents the price level with the highest traded volume, often acting as a significant anchor for price action.

The indicator offers two primary calculation modes:

  • Fixed Range: Uses a specific number of historical bars defined by the user.
  • Visible Range: Automatically adjusts the calculation based on the bars currently visible on the chart.

The script also highlights the Value Area, representing the price range where a specified percentage of total volume was traded (typically 68%). This helps in identifying "fair value" zones versus overextended price levels.

Details

The script utilizes Pine Script arrays to store and process volume data efficiently. It segments the price range between the period's high and low into a user-defined number of horizontal bars. For every bar in the lookback period, the script assigns its volume to the corresponding price levels.

Key technical features include:

  • Dynamic Scaling: Volume bars are scaled relative to the maximum volume in the profile and user-defined length multipliers.
  • Directional Filtering: Users can choose to calculate the profile based on total volume, bullish volume (close > open), or bearish volume (close < open).
  • POC and Value Area Logic: The Point of Control is determined by finding the index with the maximum value in the volume array. The Value Area is calculated by expanding outward from the POC until the total volume within that range meets the specified percentage threshold.

Settings

Lookback Period

  • Use Visible Range: When enabled, the script calculates volume based on the bars currently shown on the screen.
  • Fixed Range Lookback Depth: Sets the specific number of bars to analyze if "Visible Range" is disabled (Range: 10-3000).

Volume Bars

  • Number of Volume Bars: Determines the vertical resolution of the profile (Range: 10-490).
  • Volume Bar Thickness: Controls the width of the horizontal lines representing the volume.
  • Bar Length Multiplier: Adjusts the horizontal length of the volume bars.
  • Right Offset: Shifts the profile to the right of the current price action to prevent overlapping with candles.
  • Volume Type: Filters volume by "Both", "Bullish", or "Bearish" candles.
  • Volume Bar Color: Sets the base color for the volume profile.

Point of Control

  • Display Point of Control (PoC): Toggles the visibility of the POC line.
  • PoC Line Thickness: Adjusts the thickness of the POC line.
  • PoC Line Color: Sets the color for the POC level.

Value Area

  • Display Value Area: Highlights the volume bars that fall within the Value Area.
  • Value Area Percentage(%): Sets the volume threshold for the Value Area (default is 68%).
  • Value Area Bar Color: Sets the color for bars within the Value Area.
  • Display Value Area Lines: Toggles horizontal lines at the Value Area High (VAH) and Value Area Low (VAL).
  • Value Area Lines Thickness: Adjusts the thickness of the VAH and VAL lines.

FAQ

How do I interpret the Point of Control (POC)? The POC is the price level with the most trading activity. It often serves as a magnet for price or a significant level of support and resistance because it represents where the most market participants agreed on a price.

What is the significance of the Value Area? The Value Area shows where the majority of trading took place. Prices outside this area are often considered "unfair" or overextended, potentially leading to mean reversion back into the Value Area or a breakout into a new value zone.

How can I access the Volume Profile? 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.