Nicolas

Session Profiles & Naked POC: daily volume profiles, value area and untested POCs

Studio Only
Category: Indicators By: Nicolas Created: December 2, 2026, 6:05 PM
December 2, 2026, 6:05 PM
Indicators
0 Comments
ProRealCode Script
Session Profiles & Naked POC: daily volume profiles, value area and untested POCs

Session Profiles & Naked POC draws one volume profile per day on an intraday ProRealTime chart. Each day gets its point of control (POC), its value area and the two edges of that area, VAH and VAL. A POC that price has not traded back to since its day is a naked POC: it is extended to the right as a dashed line until price reaches it. Yesterday’s value area is carried through today, and a table says where today opened and where price trades against these levels.

This code is written in ProRealCode Script and runs with ProRealCode Studio on ProRealTime Web.

Session volume profile indicator on a 1-minute Mini Nasdaq 100 chart, with one profile per day, point of control, value area and a naked POC line

Mini Nasdaq 100, 1 minute. Monday’s POC near 27,009 has not been traded since: it runs to the right as a dashed gold line, a naked POC. Tuesday’s POC was retested during today’s session and its line stops there. The labels on the right are cut by the price scale in this capture: leave some empty space after the last candle.

What a session volume profile shows

A volume profile turns the chart on its side: instead of the volume traded at each moment, it shows the volume traded at each price. The long rows are the prices where the market spent its volume and agreed on a value. The short rows are the prices it crossed quickly. A profile per day lets you compare the days: where each one found its value, whether today is building above, inside or below yesterday, and which levels of the past days are still untested.

The profile is built from the candles of the chart: each candle spreads its volume evenly over the price rows it covered. The smaller the chart’s timeframe, the more precise the profile. A 1-minute chart gives a fine profile, a 15-minute chart a coarser one.

1. One profile per day

Each of the last days (5 by default) has its own profile, drawn from the first candle of the day towards the right. A faint frame shows the range of the day. The day’s range is cut into 24 rows (adjustable), and the longest row takes half of the day’s width (adjustable).

Today’s profile is live: it is rebuilt on every tick, so its rows, its POC and its value area move as the session goes on.

A day is a calendar day as the platform dates the candles. On the Nasdaq future above, the day changes at 07:00 on the chart, which is midnight at the exchange in Chicago, and the first hours of the week show as a narrow profile of their own. On the Mini DAX below, the day changes at midnight.

2. Point of control and value area

  • The point of control (POC): the row with the most volume, in gold, extended as a gold line over the whole day. It is the price the market accepted the most that day.
  • The value area: the rows around the POC that hold 70% of the day’s volume (adjustable), in blue. It is built the classic way: starting from the POC, the busier of the two neighbouring rows is added, above or below, until 70% is reached.
  • VAH and VAL: the value area high and the value area low, the two dotted lines at the edges of the blue rows.
  • The grey rows: the volume outside the value area, where price was rejected or only passed through.

3. Naked POC

For each past day, the indicator checks every candle that came after it. If none of them traded at the price of that day’s POC, the POC is naked: its line continues to the right as a dashed gold line, beyond the last candle, with a label giving its price.

A naked POC is a level where a lot of volume traded and that the market has not tested again. Many traders treat it as a magnet: price often comes back to it, and the first return often gets a reaction. Once a candle touches the level, the POC is no longer naked: its line becomes a faint dotted line that stops at the candle that touched it.

4. Yesterday’s value area

Yesterday’s value area is carried through today as a faint band between two dotted lines, labelled “Yesterday VAH” and “Yesterday VAL”. Where today opens and trades against that band is one of the most used readings of the profile:

  • Open inside yesterday’s value: the market still agrees with yesterday’s prices. The two edges often act as the limits of the day.
  • Open above or below yesterday’s value: the market has moved. Either it holds outside and builds a new value there, or it comes back inside, and the opposite edge becomes a target.

Session volume profiles on a 1-minute Mini DAX chart, with three daily profiles, their points of control and yesterday's VAH and VAL carried into today

Mini DAX, 1 minute. Today opened above yesterday’s value area, came back to yesterday’s VAL around 08:30, held there, and left the area by the top. Price now trades above today’s own value area. Both past POCs have been retested, so the table shows no naked POC.

The table

  • Today’s POC: the point of control of the current day.
  • Today’s value area: its low and its high.
  • Price: above, inside or below today’s value area.
  • Today opened: above, inside or below yesterday’s value area.
  • Naked POC: how many are still open, and the price of the nearest one.

Settings and how to use it

Paste the code into a new Studio tab and run it on an intraday chart, from 1 minute to 15 minutes. Leave some empty space after the last candle: the naked POC lines and the labels are drawn there. Every setting is a field of the Variables form:

  • Days shown: 5 by default.
  • Rows per day: 24 by default. More rows give a finer profile and a more precise POC.
  • Profile width (% of the day): 50 by default. The longest row takes that share of the day’s width.
  • Value area (%): 70 by default.
  • Candles read at most: 4000 by default. On a 1-minute chart of a future that trades almost around the clock, that is about three days, which is why the captures show fewer than five profiles. Raise it, or use a 5-minute chart, to see more days. A day is only drawn when its first candle is among the candles read.

On an instrument without volume, every candle counts as one unit of time. The profile then shows the time spent at each price instead of the volume traded.

A typical reading: today opens inside yesterday’s value area, price drops to yesterday’s VAL, a naked POC sits a few points lower, and price reacts between the two. Each of these is a reason. None of them is a signal on its own.

Under the hood

The code also shows several additions of ProRealCode Script: input() fields, arrays for the days and for the rows of each profile, nested loops with BREAK and CONTINUE, a WHILE loop that grows the value area around the POC, dashed and dotted lines and labels drawn beyond the last candle, and a table with DRAWTABLE, TABLEMERGE and TABLECELL.

// ============================================================================
// Session Profiles & Naked POC
// One volume profile per day, with the levels the market has not revisited
// ----------------------------------------------------------------------------
// Author: Nicolas — ProRealCode
// Runs with ProRealCode Studio: https://www.prorealcode.com/prorealcode-studio/
// ----------------------------------------------------------------------------
// Each of the last days gets its own volume profile, drawn from the start of
// its session: the point of control (POC, the busiest price), the value area
// that holds 70% of the volume, and its two edges (VAH and VAL). A POC that
// price has not traded back to since its day is a naked POC: it is extended
// to the right until price reaches it. Yesterday's value area is carried
// through today, and a table says where today opened and trades against it.
// ============================================================================

input(sessions, 5, "Days shown", int)
input(rows, 24, "Rows per day", int)
input(widthPct, 50, "Profile width (% of the day)", int)
input(vaPct, 70, "Value area (%)", int)
input(maxBars, 4000, "Candles read at most", int)

IF volume > 0 THEN
vol = volume
ELSE
vol = 1
ENDIF

IF islastbarupdate THEN
// ── 1. Where each day starts and ends ──────────────────────────────────────
nS = 0
$sEnd[0] = barindex
lim = MIN(maxBars, barindex)
FOR k = 0 TO lim - 1 DO
IF date[k] <> date[k + 1] THEN
$sFrom[nS] = barindex - k
nS = nS + 1
IF nS >= sessions THEN
BREAK
ENDIF
$sEnd[nS] = barindex - k - 1
ENDIF
NEXT
IF nS = 0 THEN
$sFrom[0] = barindex - lim
nS = 1
ENDIF

naked = 0
nearDist = -1
nearPoc = 0
FOR s = nS - 1 DOWNTO 0 DO
f = $sFrom[s]
e = $sEnd[s]
// ── 2. The day's range, then its volume row by row ───────────────────────
hi = high[barindex - f]
lo = low[barindex - f]
FOR bi = f TO e DO
k = barindex - bi
hi = MAX(hi, high[k])
lo = MIN(lo, low[k])
NEXT
rowH = (hi - lo) / rows
IF rowH <= 0 THEN
CONTINUE
ENDIF
FOR b = 0 TO rows - 1 DO
$p[b] = 0
NEXT
total = 0
FOR bi = f TO e DO
k = barindex - bi
b0 = MAX(0, MIN(rows - 1, FLOOR((low[k] - lo) / rowH)))
b1 = MAX(0, MIN(rows - 1, FLOOR((high[k] - lo) / rowH)))
share = vol[k] / (b1 - b0 + 1)
FOR b = b0 TO b1 DO
$p[b] = $p[b] + share
NEXT
total = total + vol[k]
NEXT

// ── 3. Point of control, then the value area grown around it ─────────────
pocRow = 0
FOR b = 1 TO rows - 1 DO
IF $p[b] > $p[pocRow] THEN
pocRow = b
ENDIF
NEXT
maxRow = $p[pocRow]
upRow = pocRow
dnRow = pocRow
inside = maxRow
WHILE inside < vaPct / 100 * total AND (upRow < rows - 1 OR dnRow > 0) DO
nextUp = 0
nextDn = 0
IF upRow < rows - 1 THEN
nextUp = $p[upRow + 1]
ENDIF
IF dnRow > 0 THEN
nextDn = $p[dnRow - 1]
ENDIF
IF (nextUp >= nextDn AND upRow < rows - 1) OR dnRow = 0 THEN
upRow = upRow + 1
inside = inside + nextUp
ELSE
dnRow = dnRow - 1
inside = inside + nextDn
ENDIF
WEND
poc = lo + (pocRow + 0.5) * rowH
vah = lo + (upRow + 1) * rowH
val = lo + dnRow * rowH

// ── 4. The profile, from the first candle of the day ─────────────────────
wBars = MAX(4, (e - f + 1) * widthPct / 100)
DRAWRECTANGLE(f - 0.5, lo, e + 0.5, hi) FILLCOLOR(120, 140, 200, 7) COLOURED(120, 140, 200, 45)
FOR b = 0 TO rows - 1 DO
len = $p[b] / maxRow * wBars
IF len > 0 THEN
yLo = lo + b * rowH
IF b = pocRow THEN
DRAWRECTANGLE(f - 0.5, yLo, f - 0.5 + len, yLo + rowH) FILLCOLOR(250, 215, 80, 200) COLOURED(250, 215, 80, 0)
ELSIF b >= dnRow AND b <= upRow THEN
DRAWRECTANGLE(f - 0.5, yLo, f - 0.5 + len, yLo + rowH) FILLCOLOR(70, 150, 255, 120) COLOURED(70, 150, 255, 0)
ELSE
DRAWRECTANGLE(f - 0.5, yLo, f - 0.5 + len, yLo + rowH) FILLCOLOR(110, 125, 165, 70) COLOURED(110, 125, 165, 0)
ENDIF
ENDIF
NEXT
DRAWSEGMENT(f, vah, e, vah) COLOURED(120, 180, 255, 200) STYLE(dottedline, 1)
DRAWSEGMENT(f, val, e, val) COLOURED(120, 180, 255, 200) STYLE(dottedline, 1)
DRAWSEGMENT(f, poc, e, poc) COLOURED(250, 215, 80) STYLE(line, 2)
pocTxt = ROUND(poc / ticksize) * ticksize

// ── 5. Past days: is the POC still naked? ────────────────────────────────
IF s > 0 THEN
hit = 0
FOR bi = e + 1 TO barindex DO
k = barindex - bi
IF low[k] <= poc AND high[k] >= poc THEN
hit = bi
BREAK
ENDIF
NEXT
IF hit = 0 THEN
naked = naked + 1
DRAWSEGMENT(e, poc, barindex + 10, poc) COLOURED(250, 215, 80) STYLE(dashedline, 2)
DRAWLABEL(barindex + 11, poc, "Naked POC #pocTxt#", none, small, left) COLOURED(30, 24, 0) FILLCOLOR(250, 215, 80, 235)
IF nearDist < 0 OR ABS(close - poc) < nearDist THEN
nearDist = ABS(close - poc)
nearPoc = pocTxt
ENDIF
ELSE
DRAWSEGMENT(e, poc, hit, poc) COLOURED(250, 215, 80, 90) STYLE(dottedline, 1)
ENDIF
ENDIF
// Yesterday's value area, carried through today
IF s = 1 THEN
yVah = vah
yVal = val
DRAWRECTANGLE(e + 0.5, val, barindex + 10, vah) FILLCOLOR(70, 150, 255, 10) COLOURED(70, 150, 255, 0)
DRAWSEGMENT(e, vah, barindex + 10, vah) COLOURED(120, 180, 255, 170) STYLE(dottedline, 1)
DRAWSEGMENT(e, val, barindex + 10, val) COLOURED(120, 180, 255, 170) STYLE(dottedline, 1)
DRAWLABEL(barindex + 11, vah, "Yesterday VAH", none, small, left) COLOURED(220, 235, 255) FILLCOLOR(40, 80, 150, 220)
DRAWLABEL(barindex + 11, val, "Yesterday VAL", none, small, left) COLOURED(220, 235, 255) FILLCOLOR(40, 80, 150, 220)
ENDIF
IF s = 0 THEN
tPoc = pocTxt
tVah = ROUND(vah / ticksize) * ticksize
tVal = ROUND(val / ticksize) * ticksize
tOpen = open[barindex - f]
ENDIF
NEXT

// ── 6. The table ───────────────────────────────────────────────────────────
board = DRAWTABLE(6, 2, topleft) FILLCOLOR(14, 18, 30, 235) BORDERCOLOR(50, 60, 90)
TABLEMERGE(board, 0, 0, 1, 2)
TABLECELL(board, 0, 0, "Session profiles", bold, center, 14) COLOURED(220, 228, 245)
TABLECELL(board, 1, 0, "Today's POC") COLOURED(150, 165, 195)
TABLECELL(board, 1, 1, "#tPoc#", bold, right) COLOURED(250, 215, 80)
TABLECELL(board, 2, 0, "Today's value area") COLOURED(150, 165, 195)
TABLECELL(board, 2, 1, "#tVal# – #tVah#", right) COLOURED(120, 180, 255)
TABLECELL(board, 3, 0, "Price") COLOURED(150, 165, 195)
IF close > tVah THEN
TABLECELL(board, 3, 1, "above today's value", bold, right) COLOURED(60, 220, 130)
ELSIF close < tVal THEN
TABLECELL(board, 3, 1, "below today's value", bold, right) COLOURED(240, 80, 90)
ELSE
TABLECELL(board, 3, 1, "inside today's value", right) COLOURED(220, 228, 245)
ENDIF
TABLECELL(board, 4, 0, "Today opened") COLOURED(150, 165, 195)
IF nS < 2 THEN
TABLECELL(board, 4, 1, "no day before", right) COLOURED(150, 165, 195)
ELSIF tOpen > yVah THEN
TABLECELL(board, 4, 1, "above yesterday's value", bold, right) COLOURED(60, 220, 130)
ELSIF tOpen < yVal THEN
TABLECELL(board, 4, 1, "below yesterday's value", bold, right) COLOURED(240, 80, 90)
ELSE
TABLECELL(board, 4, 1, "inside yesterday's value", right) COLOURED(220, 228, 245)
ENDIF
TABLECELL(board, 5, 0, "Naked POC") COLOURED(150, 165, 195)
IF naked > 0 THEN
TABLECELL(board, 5, 1, "#naked# · nearest #nearPoc#", bold, right) COLOURED(250, 215, 80)
ELSE
TABLECELL(board, 5, 1, "none", right) COLOURED(220, 228, 245)
ENDIF
ENDIF

RETURN
No ITF file for this code
A Studio Only code is not imported into ProRealTime™. Copy it and paste it into the ProRealCode Studio editor.
Nicolas
Nicolas Legend
I created ProRealCode because I believe in the power of shared knowledge. I spend my time coding new tools and helping members solve complex problems. If you are stuck on a code or need a fresh perspective on a strategy, I am always willing to help. Welcome to the community!
Author’s Profile

Comments

ProRealCode ProRealCode
Loading...