Indicator · Pine Script v5 · On the chart

Stella's Volume Profile

by stella-entry

Stella's Volume Profile estimates volume distribution across price levels over a designated lookback period.

View on GitHub

GitHub stars3on the repository
Pine versionv5runs as is
Lines of code40
Settings3inputs
LicenceMIT
Last update8 months ago22 Feb 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above, or the copy button on the code below.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

40 lines of Pine Script v5 from indicators/volume-profile-indicator.pine, published under MIT. Keep the author's credit and licence lines when you reuse it.

volume-profile-indicator.pine
//@version=5
indicator("Stella's Volume Profile", overlay=true, max_boxes_count=500)

// Volume Profile Indicator
// Shows volume distribution at price levels

lookback = input(100, "Lookback Period")
row_height = input(10, "Row Height (%)")
volume_power = input(2.5, "Volume Power")

// Calculate price levels
highest_price = ta.highest(high, lookback)
lowest_price = ta.lowest(low, lookback)
price_range = highest_price - lowest_price
row_size = price_range * row_height / 100

// Volume at price
var float[] volume_at_price = array.new_float(100, 0.0)

for i = 0 to 99
    level_low = lowest_price + (price_range * i / 100)
    level_high = level_low + row_size

    // Check if current bar's price is in this level
    in_level = low <= level_high and high >= level_low

    if in_level
        array.set(volume_at_price, i, array.get(volume_at_price, i) + volume)

// Find highest volume level
max_volume = array.max(volume_at_price)
max_index = array.indexof(volume_at_price, max_volume)
poc_price = lowest_price + (price_range * max_index / 100)

// Plot POC (Point of Control)
plot(poc_price, "POC", color=color.yellow, linewidth=2)

// Alert when price crosses POC
alertcondition(ta.crossover(close, poc_price), "POC Cross Up", "Price crossed POC up")
alertcondition(ta.crossunder(close, poc_price), "POC Cross Down", "Price crossed POC down")

Overview

Stella's Volume Profile divides the high-low price range into discrete rows and accumulates volume to identify the Point of Control, representing the price level with the highest volume concentration. The script plots the Point of Control line directly on the price chart and provides alert conditions for price crossovers and crossunders. Key settings let users modify the lookback period, row height percentage, and volume power weighting.

Details

Published by

stella-entry on GitHub

Type

Indicator, Pine Script v5

Draws

On the price chart

Category

Volume, Support & resistance

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Lookback Periodint100lookback
Row Height (%)int10row_height
Volume Powerfloat2.5volume_power
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

This overlay indicator draws a fixed-range volume profile on the price chart, splitting traded activity into up and down volume at each price level. It also plots a sentiment profile, a developing point of control, and value-area high and low around a configur

Indicator v5 VolumeSupport & resistance
Updated 2 months ago · MIT GitHub repository of Volume Profile and Indicator by DGT

MGIC-tracker

by Allen1212
303 stars

The MGIC-tracker is a TradingView indicator that overlays ARK Invest trade records onto stock price charts. It plots buy and sell labels at the exact timestamp of each transaction, showing share volume and ETF weight. Users select a specific ETF type via setti

Indicator v4 Support & resistanceVolume
Updated 2 years ago · None stated GitHub repository of MGIC-tracker
218 stars

Comprehensive Volume Profile is an overlay indicator that calculates and plots volume distribution across specified time ranges such as daily sessions, weekly, monthly, or custom bar lengths. It identifies key structural price levels including the Point of Con

Indicator v6 VolumeSupport & resistance
Updated 3 months ago · None stated GitHub repository of Comprehensive Volume Profile

Moon Dev GEX Arrows

by moondevonyt
92 stars

This overlay indicator plots option strike walls and an optional session VWAP on the price chart for SPY or ES. It spaces major strikes by the selected instrument, draws a set number of strikes on each side, and marks wall-trap and sweep events after a cooldow

Indicator v5 Support & resistanceSessions & time
Updated 8 weeks ago · Custom licence GitHub repository of Moon Dev GEX Arrows

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers