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:
- The range is not anchored to a date or an event. When a new bar prints, the oldest bar drops out.
- The rows, the value area and the POC are recalculated each time. In our simulation the POC price changed from one bar to the next on about 23% of bars, from the window sliding alone.
- There is no history. Scrolling back does not show where the POC was yesterday; it only ever shows the profile of the latest 150 bars.
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 candle | Share of the bar's volume | Counted as |
|---|---|---|
| Body (open to close) | its length, weight 1 | up volume on a green candle, down volume on a red one |
| Upper wick | its length, weight 2 | half up, half down |
| Lower wick | its length, weight 2 | half 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
| Setting | Default | What it does |
|---|---|---|
| Number of Bars | 150 | how many recent bars go into the profile (max 500) |
| Row Size | 24 | how many price rows; each is 1/24 of the window's high-low range |
| Value Area Volume % | 70 | how much of the volume the value area holds |
| Show POC Label | on | prints 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
- POC: the row with the most estimated volume. On a tie, the lowest row wins. The line sits in the middle of that row.
- Value area: starts at the POC row and adds one neighbouring row at a time, the larger of the row above and the row below, until 70% of the volume is inside.
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
- "Fixed range" is a rolling window. The profile, POC and value area move as bars are added; there is no anchored range and no history.
- The row volumes are estimates. They come from candle shape, not from trades or lower-timeframe data; in our simulation the POC was a row off or more about one time in four.
- Up and down volume is a guess. Body volume follows the candle colour and wick volume is split in half; it is not buying and selling pressure.
- Rows scale with the range. 24 rows over a wide range are coarse, so a "level" can be several points tall.
- Value-area edges depend on the method. This one adds one row at a time; other tools add two and can disagree.
- Bars with no range are dropped, and there are no alerts and no test of any setting.
- Volume only shows where trading happened. It does not say whether price will return there.
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
Get the next teardown by email
One short email when a new teardown or free tool goes live, about twice a month. No signals, no hype. Unsubscribe in one click.
Almost done. Check your inbox and click the confirmation link.
Sent with Kit. Your address is used only for these emails. Privacy
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.