Free: indicator teardowns, a repaint checker and open-source scripts. No buy/sell signals, ever.

Taught to TradeSystems over signals.

Explainers / Volume Profile / Fixed Range

Volume Profile / Fixed Range, explained from the source

Volume Profile / Fixed Range by LonesomeTheBlue is the most-boosted free volume profile script on TradingView, with more than 26,000 boosts. It draws horizontal bars beside price showing where volume traded, a red point of control (POC) line, and a shaded value area. Two things in its source matter more than any setting: the "fixed range" is really the last 150 bars and moves with every new bar, and the volume in each row is estimated from the shape of the candles, not read from trades.

What "fixed range" means here

The first setting, "Number of Bars", is 150 by default (500 at most). The script takes the last 150 bars up to the newest one, and only draws on the last bar of the chart. So:

TradingView's own Fixed Range Volume Profile drawing tool is a different thing: you anchor it between two points and it stays there. If you came looking for that, this script will not behave the same way.

Where the volume in each row comes from

A chart bar only knows its open, high, low, close and total volume. It does not know at which prices the volume traded. This script estimates it:

Part of the candleShare of the bar's volumeCounted as
Body (open to close)its length, weight 1up volume on a green candle, down volume on a red one
Upper wickits length, weight 2half up, half down
Lower wickits length, weight 2half up, half down

Inside each part the volume is spread evenly over its price range, then added to whichever of the 24 rows it overlaps. The blue and orange split in each row is this up/down estimate, not buyer and seller volume.

How close does that get? In our simulation (random-walk prices, each bar built from 30 smaller steps with their own volume) the estimated POC landed on the same row as the POC of the underlying steps in 75 to 78% of windows, and within one row in 91 to 92%. The value-area rows overlapped well (about 0.95 on a 0 to 1 scale). So the estimate is usually near, and on about one window in four the POC is a row off or more.

The settings

SettingDefaultWhat it does
Number of Bars150how many recent bars go into the profile (max 500)
Row Size24how many price rows; each is 1/24 of the window's high-low range
Value Area Volume %70how much of the volume the value area holds
Show POC Labelonprints the POC price to the right of the last bar

Because the row count is fixed, a wide range gives tall, coarse rows and a narrow range gives fine ones. The same 24 rows on a quiet week and on a crash week mean very different price steps.

The POC and the value area

Many textbook descriptions of the value area compare two rows above against two rows below at each step. On the same profile, the two methods gave different value-area edges in about three windows out of four in our simulation (usually by one row). Neither is wrong; just don't expect this script's value-area high and low to match another platform's.

Does it repaint?

Yes, by design. It is drawn on the newest bar only, it includes the bar that is still forming, and the whole window shifts by one bar every time a bar closes. A POC level you saw this morning may be somewhere else, or gone, by the afternoon, and the chart keeps no record of it. More in what repainting is and how to check a script yourself.

Where it fails

Also explained: VWAP · Pivot Points High Low · ZigZag · Repainting

Educational only. Not financial advice. Nothing here is a recommendation to buy or sell anything. Volume Profile / Fixed Range is by LonesomeTheBlue on TradingView, published under the Mozilla Public License 2.0; this page explains its published open-source code and is not affiliated with the author. Simulation figures come from synthetic random-walk prices and say nothing about how the indicator trades.

Also explained: Repaint checker, VWAP, Supertrend, RSI, UT Bot Alerts, Nadaraya-Watson Envelope, Squeeze Momentum, What is repainting on TradingView?, Is TradingView backtesting accurate?, Chandelier Exit, WaveTrend Oscillator, QQE MOD, Pivot highs and lows, Hull Suite, Range Filter, Twin Range Filter, HalfTrend, ZigZag++, SSL Hybrid, CM MacD Ultimate MTF, ADX and DI, Support Resistance Channels, Market Structure Break & Order Block, Order Block Finder, Pivot Point SuperTrend, Trendlines with Breaks [LuxAlgo], Divergence for Many Indicators, TradingView script selling terms, Support and Resistance Levels with Break, Liquidity Swings [LuxAlgo], Pine Script errors, Breakout Probability (Expo), Did ChatGPT or Claude write your Pine Sc, Lorentzian Classification, SuperTrend AI (Clustering), Machine Learning Adaptive SuperTrend, Dynamic Swing Anchored VWAP, Support and Resistance Power Channel by , Support and Resistance (High Volume Boxe, Trendline Breakouts With Targets by Char, Breakout Finder by LonesomeTheBlue

Next steps

  • Get a script fixed. Compiles but behaves differently live, or changes after a reload? In a Pine Script Audit, an AI model reads every line and writes a report on what to fix for $49, or also fixes those problems for $149. It cannot prove a script is safe.
  • Check your own script. Paste its source into the free repaint checker. It runs in your browser and flags known patterns.
Subscribe to the Teardown Letter: $19/moBack to Taught to Trade

No TradingView account yet? This affiliate link gives you a $15 coupon toward a paid plan, and we earn a commission if you buy one. The free plan is enough to follow this page.