1Copy the scriptPress Copy script above, or the copy button on the code below.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.
Source Code
309 lines of Pine Script v5 from VP History Widget.txt, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
VP History Widget aggregates volume or open interest across user-defined sessions such as daily, weekly, or monthly periods using lower-timeframe data. The script segments volume into price bins to calculate the Point of Control (POC) and Value Area (VAH and VAL). Users can adjust the number of past sessions, profile resolution bins, bar widths, spacing offsets, smoothing options, and visual styling for POC and value area levels.
Multi-session volume profile widget display
Point of Control and Value Area calculations
Support for regular volume and open interest data
Lower-timeframe volume aggregation
Customizable layout, bin resolution, and session timeframes
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Show Widget
bool
true
wShow
Offset from price (bars)
int
10
wOffset
VP Width (bars)
int
10
wSlotW
Gap between VPs (bars)
int
3
wGapW
Number of Sessions
int
5
wSessions
Session Timeframe
string
Daily
wTF
VP Bins
int
50
wRes
Value Area %
int
70
wVAWid
Profile Data
string
Volume
wVolType
Smooth Volume
bool
false
wSmooth
Up Volume
color
color.rgb(0, 47, 255, 75)
wBullCol
Down Volume
color
color.rgb(204, 0, 255, 75)
wBearCol
Show all 18 settings
Setting
Type
Default
Variable
POC Line
color
color.rgb(255, 80, 80, 0)
wPocCol
VAH/VAL
color
color.rgb(0, 200, 200, 0)
wVACol
Separator
color
color.new(color.gray, 60)
wSepCol
Show POC
bool
true
wShowPoc
Show VAH / VAL
bool
true
wShowVA
Show Labels
bool
true
wShowLbl
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.
This overlay indicator draws a fixed-range volume profile on the price chart, splitting traded activity into up and down volume at each price level. It also plots a sentiment profile, a developing point of control, and value-area high and low around a configur
The MGIC-tracker is a TradingView indicator that overlays ARK Invest trade records onto stock price charts. It plots buy and sell labels at the exact timestamp of each transaction, showing share volume and ETF weight. Users select a specific ETF type via setti
This overlay indicator marks call and put setups from EMAs, RSI, MACD, and a SPY volume ratio. A call needs higher highs, RSI above its minimum, rising MACD, above-average proxy volume, and a rising trend EMA; a put reverses those tests. Early markers use an E
Comprehensive Volume Profile is an overlay indicator that calculates and plots volume distribution across specified time ranges such as daily sessions, weekly, monthly, or custom bar lengths. It identifies key structural price levels including the Point of Con
This indicator plots two Hull moving averages on the price chart, one of the selected price and one of close, and optionally smooths both with a Kahlman filter. It fills the space between them and marks buy and sell labels when they cross, provided scaled volu
This overlay indicator plots option strike walls and an optional session VWAP on the price chart for SPY or ES. It spaces major strikes by the selected instrument, draws a set number of strikes on each side, and marks wall-trap and sweep events after a cooldow