A price chart overlay that plots rolling VWAP lines over 7, 30, 90 and 365 days, calculated from a selectable reference timeframe with optional smoothing and price labels.
1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
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
The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.
Overview
N Rolling and Anchored VWAP also draws up to several anchored VWAPs that restart each day, week, month, quarter or year, each with colored bands and fill, plus a master switch for the anchored group. It imports a conditional averages library from PineCoders. Setting labels are in Chinese and English. It reads other timeframe data, so values can differ from a single-timeframe calculation.
Rolling VWAP for 7, 30, 90 and 365 days
Anchored VWAP by day, week, month, quarter or year
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
显示7天 (Show 7D)
bool
true
show_7d
显示30天 (Show 30D)
bool
true
show_30d
显示90天 (Show 90D)
bool
true
show_90d
显示365天 (Show 365D)
bool
true
show_365d
7D颜色 (Color)
color
color.new(#6BEFF9, 20)
color_7d
30D颜色 (Color)
color
color.new(#00BED6, 20)
color_30d
90D颜色 (Color)
color
color.new(#006C7A, 0)
color_90d
365D颜色 (Color)
color
color.new(#004851, 0)
color_365d
参考时间框架 (Reference TF)
string
60
rvwap_ref_tf
平滑周期 (Smoothing)
int
1
rvwap_smoothing
显示7D标签 (Show 7D Label)
bool
true
show_rvwap_label_7d
显示30D标签 (Show 30D Label)
bool
true
show_rvwap_label_30d
Show all 40 settings
Setting
Type
Default
Variable
显示90D标签 (Show 90D Label)
bool
true
show_rvwap_label_90d
显示365D标签 (Show 365D Label)
bool
true
show_rvwap_label_365d
RVWAP 标签偏移 (Label Offset)
int
60
rvwap_label_offset
RVWAP 价格格式 (Price Format)
string
#.####
rvwap_label_format
🔴 总开关 - Anchored VWAP
bool
true
master_AVWAP
VWAP1_Ctl
bool
true
VWAP1_Ctl
Anchor1
string
Quarter
Anchor1
POC
color
color.new(#7E57C2, 50)
VWAP1_Col
Bands Border
color
color.new(#7E57C2, 100)
Bands1_Col
Fill
color
color.new(#7E57C2, 95)
VWAP1_Bgc
VWAP2_Ctl
bool
true
VWAP2_Ctl
Anchor2
string
Month
Anchor2
POC
color
color.new(#29B6F6, 50)
VWAP2_Col
Bands Border
color
color.new(#29B6F6, 100)
Bands2_Col
Fill
color
color.new(#29B6F6, 95)
VWAP2_Bgc
VWAP3_Ctl
bool
true
VWAP3_Ctl
Anchor3
string
Week
Anchor3
POC
color
color.new(#FFCA28, 50)
VWAP3_Col
Bands Border
color
color.new(#FFCA28, 100)
Bands3_Col
Fill
color
color.new(#FFCA28, 95)
VWAP3_Bgc
VWAP4_Ctl
bool
true
VWAP4_Ctl
Anchor4
string
Day
Anchor4
POC
color
color.new(#FFFFFF, 70)
VWAP4_Col
Bands Border
color
color.new(#FFFFFF, 100)
Bands4_Col
Fill
color
color.new(#FFFFFF, 95)
VWAP4_Bgc
VWAP5_Ctl
bool
true
VWAP5_Ctl
Anchor5
string
Year
Anchor5
POC
color
color.new(#BDBDBD, 10)
VWAP5_Col
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