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
182 lines of Pine Script v6 from pinescript/editors_picks/rolling-vwap.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
Unlike anchored or daily reset VWAPs, it calculates volume-weighted price over a continuous rolling time window defined by days, hours, and minutes, or selected automatically based on chart resolution. Optional standard deviation bands can be plotted above and below the rolling VWAP line using configurable multipliers. An on-screen information box displays the active calculation period, and minimum bar constraints help avoid empty windows across data gaps.
Continuous rolling volume-weighted average price calculation
Configurable standard deviation bands
Auto-detected or fixed rolling time period options
On-screen info box showing calculation window span
Minimum bar setting to maintain calculations across time gaps
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Source
source
hlc3
srcInput
Use a fixed time period
bool
false
fixedTfInput
Days
int
1
daysInput
Hours
int
0
hoursInput
Minutes
int
0
minsInput
Show time period
bool
true
showInfoBoxInput
Size
string
small
infoBoxSizeInput
↕
string
bottom
infoBoxYPosInput
↔
string
right
infoBoxXPosInput
infoBoxColorInput
color
#787b86
infoBoxColorInput
T
color
#ffffff
infoBoxTxtColorInput
Bands multiplier 1
float
0.0
stdevMult1
Show all 18 settings
Setting
Type
Default
Variable
Bands multiplier 2
float
0.0
stdevMult2
Bands multiplier 3
float
0.0
stdevMult3
stdevColor1
color
#4caf50
stdevColor1
stdevColor2
color
#ffeb3b
stdevColor2
stdevColor3
color
#ff5252
stdevColor3
Bars
int
10
minBarsInput
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 indicator plots a custom Anchored Volume-Weighted Average Price (VWAP) directly on the price chart along with optional standard deviation bands. Users can anchor the VWAP to standard time periods like sessions, weeks, or months, or to corporate events suc
LiqSpikeBounceLong Feb2026 is an indicator designed to identify long bounce entries following high-volume liquidation cascades in bearish market contexts. It checks if price is below an exponential moving average, then detects large single-bar drops exceeding
This indicator calculates Kaufman's Adaptive Moving Average (KAMA) on a chosen price source and determines trend direction based on the slope across a configurable lookback window. Signals can be filtered by short-term volatility expansion using ATR comparison
This indicator overlays exponential moving averages and a session VWAP on the price chart. It builds a daily VWAP from typical price and volume, then plots one- and two-standard-deviation bands around it on selected intraday charts. EMA lengths change by timef
BBW RSI 15 Study is an overlay indicator designed for automated crypto trading via webhooks. It plots standard-deviation-adjusted Bollinger Bands directly on the price chart while calculating secondary metrics such as Stochastic RSI, volume moving averages, an
This indicator plots a volume-weighted moving average as a central trend baseline and surrounds it with ATR-based volatility bands. It colors the trend and optional price bars according to whether price is on the bullish or bearish side of those bands. Users c