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.

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.
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.
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.
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.
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:

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.
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:
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.
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