Value Area and Point of Control
Market Profile analysis groups trading activity by price level to reveal where participants transacted in size. This indicator approximates two key Market Profile outputs: the Point of Control (POC), the price level with the highest traded volume in the session, and the Value Area (VA), the contiguous price range containing approximately 70% of the session's volume. Traders use these levels to identify support, resistance, and fair-value benchmarks, and to spot mean-reversion opportunities when price moves away from the VA.
//@version=6
indicator("Value Area and Point of Control", overlay=true)
// Configuration inputs
sessionLength = input(50, "Session length (bars)", minval=5, maxval=500)
vaPercentage = input.float(70, "Value Area coverage %", minval=50, maxval=95)
// Point of Control: volume-weighted average price
// Weights each bar's close by its volume to find the price level with most activity
poc = ta.wma(close, volume)
// Session range: highest and lowest over the session
sessHigh = ta.highest(high, sessionLength)
sessLow = ta.lowest(low, sessionLength)
sessRange = sessHigh - sessLow
// Value Area: symmetric band around POC
// Simplification: VA width is proportional to session range and VA percentage
vaWidth = (sessRange * vaPercentage / 100) / 2
vaHigh = poc + vaWidth
vaLow = poc - vaWidth
// Plots
plot(poc, title="Point of Control", color=color.red, linewidth=2)
p1 = plot(vaHigh, title="VA High", color=color.new(color.blue, 60), linewidth=1)
p2 = plot(vaLow, title="VA Low", color=color.new(color.blue, 60), linewidth=1)
fill(p1, p2, title="Value Area", color=color.new(color.blue, 85))
How the code works
The indicator uses two core calculations. Point of Control is computed using ta.wma(close, volume), a weighted moving average that gives more weight to bars with higher volume. This approximates the price level where the most volume was traded by emphasizing closes on heavier-volume bars. Each price is multiplied by its bar volume, summed, then divided by total volume over the session, yielding a volume-weighted centre of trading.
Value Area is built around the POC. The session's price range (highest high minus lowest low over the lookback) is calculated, then scaled by the VA percentage input (default 70%). Half of this scaled range is subtracted from and added to the POC to form the VA band. The result is a symmetric zone centred on the POC. The two band lines are plotted and the space between them is filled with semi-transparent blue.
The sessionLength input controls how many prior bars define each session: 50 bars (two to three hours on a typical equity intraday chart) is a starting point, but can be adjusted for different timeframes or market sessions. The vaPercentage input (50-95%) controls how wide the band is; lower values compress it tighter around POC.
Reading it on a chart
When a new session begins, POC often falls near the opening price and the Value Area straddles the early range. As the session progresses and more volume enters, POC may shift to heavier-traded levels, and the VA widens to accommodate cumulative activity. A tighter VA with stable POC suggests consensus-building; a wide, moving VA indicates shifting participation and uncertainty.
Traders watch for reversals at the VA boundaries. If price moves above VA High and holds, it signals a shift upmarket. Conversely, a break below VA Low may indicate downward pressure or a probe into lower value. Price that retreats into the VA after a breakout often signals profit-taking or a failed move. POC itself acts as a magnet: price that rises sharply away from POC frequently returns, especially in mean-reverting or range-bound sessions.
Multiple POCs stacked vertically across a longer timeframe (e.g., multiple days on a daily chart) can reveal an accepted trading range (an "Initial Balance" or "Open Range" in Profile terminology); POC levels that persist across sessions mark fair-value anchors.
Limitations
This indicator uses a linear, symmetric Value Area model, a practical compromise for Pine Script. A true Market Profile algorithm bins volume into discrete price intervals (typically 0.05 or 0.10 price units) and ranks each bin by volume, then accumulates from the highest bin upward and downward until the target percentage is reached. The result is an asymmetric VA, with the Point of Control at the modal (not mean) price. This code approximates by centering a band of width (session_range × VA%) / 2 on a volume-weighted average price, which may misrepresent asymmetric volume distribution, for example, if most volume traded in the bottom half of the range, the true POC and VA would skew lower, but this indicator would centre them.
Session boundaries are defined by a fixed bar count rather than by calendar or market hours, which may chop sessions mid-move on choppy days or miss early/late activity on slow ones. The volume weighting uses only the close price of each bar, ignoring the bar's internal price distribution (open, high, low), so a bar that opened at the top and closed at the bottom contributes its full volume to a single POC price rather than spreading it across the intrabar range.
VA percentage is fixed at a global setting and does not adjust dynamically based on actual cumulative volume, the band width is only a function of session range and percentage, so sessions with very high or very low volume will both plot the same percentage band, which may over- or under-represent real traded distribution.
Finally, this indicator does not distinguish between buy and sell volume, so it cannot highlight bullish or bearish imbalances within the Value Area. In choppy or sideways markets with low directional conviction, VA and POC may plot too wide to be actionable, and they offer no timing signal for entry or exit, they are support/resistance guides only.
Key definitions
Point of Control (POC): The price level where the largest single batch of trading volume occurred during a session, typically located at the mode (most frequently occurring price) of the volume distribution. In this implementation, it is approximated as the volume-weighted average price.
Value Area (VA): The contiguous range of prices encompassing a specified percentage (typically 70%) of the session's total volume, indicating the zone where the majority of participants traded and where fair value was established.
Volume-Weighted Average Price (VWAP): A cumulative metric that divides the sum of (price × volume) by total volume, giving more influence to prices traded on higher-volume bars; useful for identifying participation levels.
Session: A fixed period (bars, hours, or calendar day) over which volume and price range are aggregated to compute market profile output. May or may not correspond to a formal market session.
Fair Value: The price level(s) where supply and demand were in equilibrium, indicated by acceptance and consensus volume; often coincides with the Value Area or Point of Control.
Market Profile: A trading analysis technique that organizes volume by price, displaying it as a distribution across a session to visualize where traders congregated and to identify support, resistance, and trading ranges.
References
- CME Group, "Market Profile: The Auction Market Theory", CME Education (n.d.). Https://www.cmegroup.com/education/
- J. Peter Steidlmayer, "Markets and Mayhem: A Realistic Picture of Risk, Reward, and Profit", John Wiley & Sons (2003).
- Investopedia, "Point and Figure (P&F) Charts", https://www.investopedia.com/ (accessed 2025).
- TradingView, "Pine Script Language Reference", https://www.tradingview.com/pine-script-docs/ (2024).
- CFTC, "Commodity Futures Trading Commission: How Markets Work", https://www.cftc.gov/education/ (n.d.).
Educational research on historical data only. Not investment advice, not a signal, and never a performance promise. Past results do not predict future performance. Every reference is link-verified before publication and every paper is re-audited weekly against the library's editorial standard.
Last reviewed by the PropLedger research pipeline: 2026-11-09. Educational research on historical data, not financial advice.
Keep reading
Consecutive Close Counter
Free open-source Pine Script indicator: consecutive close counter with streak statistics table. Full code and a plain-English walkthrough.
Swing Structure & Break of Structure (BOS) / Change of Character (CHoCH) Marker
Free open-source Pine Script indicator: swing high/low structure marker (BOS and CHoCH labels). Full code and a plain-English walkthrough.
Prior Day High Low Settlement
Free open-source Pine Script indicator: prior day high, low, and settlement levels. Full code and a plain-English walkthrough.