Indicator · Pine Script v6 · On the chart

N Rolling and Anchored VWAP

by murasamenomad

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.

View on GitHub

Repaints

GitHub stars1on the repository
Pine versionv6current
Lines of code1,938
Settings40inputs
LicenceNone stated
Last update11 months ago16 Nov 2025

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 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.

Details

Published by

murasamenomad on GitHub

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

Volume, Support & resistance

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

  • Reads higher-timeframe data with lookahead on, so the history can show signals that were not there in real time

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
显示7天 (Show 7D)booltrueshow_7d
显示30天 (Show 30D)booltrueshow_30d
显示90天 (Show 90D)booltrueshow_90d
显示365天 (Show 365D)booltrueshow_365d
7D颜色 (Color)colorcolor.new(#6BEFF9, 20)color_7d
30D颜色 (Color)colorcolor.new(#00BED6, 20)color_30d
90D颜色 (Color)colorcolor.new(#006C7A, 0)color_90d
365D颜色 (Color)colorcolor.new(#004851, 0)color_365d
参考时间框架 (Reference TF)string60rvwap_ref_tf
平滑周期 (Smoothing)int1rvwap_smoothing
显示7D标签 (Show 7D Label)booltrueshow_rvwap_label_7d
显示30D标签 (Show 30D Label)booltrueshow_rvwap_label_30d
Show all 40 settings
SettingTypeDefaultVariable
显示90D标签 (Show 90D Label)booltrueshow_rvwap_label_90d
显示365D标签 (Show 365D Label)booltrueshow_rvwap_label_365d
RVWAP 标签偏移 (Label Offset)int60rvwap_label_offset
RVWAP 价格格式 (Price Format)string#.####rvwap_label_format
🔴 总开关 - Anchored VWAPbooltruemaster_AVWAP
VWAP1_CtlbooltrueVWAP1_Ctl
Anchor1stringQuarterAnchor1
POCcolorcolor.new(#7E57C2, 50)VWAP1_Col
Bands Bordercolorcolor.new(#7E57C2, 100)Bands1_Col
Fillcolorcolor.new(#7E57C2, 95)VWAP1_Bgc
VWAP2_CtlbooltrueVWAP2_Ctl
Anchor2stringMonthAnchor2
POCcolorcolor.new(#29B6F6, 50)VWAP2_Col
Bands Bordercolorcolor.new(#29B6F6, 100)Bands2_Col
Fillcolorcolor.new(#29B6F6, 95)VWAP2_Bgc
VWAP3_CtlbooltrueVWAP3_Ctl
Anchor3stringWeekAnchor3
POCcolorcolor.new(#FFCA28, 50)VWAP3_Col
Bands Bordercolorcolor.new(#FFCA28, 100)Bands3_Col
Fillcolorcolor.new(#FFCA28, 95)VWAP3_Bgc
VWAP4_CtlbooltrueVWAP4_Ctl
Anchor4stringDayAnchor4
POCcolorcolor.new(#FFFFFF, 70)VWAP4_Col
Bands Bordercolorcolor.new(#FFFFFF, 100)Bands4_Col
Fillcolorcolor.new(#FFFFFF, 95)VWAP4_Bgc
VWAP5_CtlbooltrueVWAP5_Ctl
Anchor5stringYearAnchor5
POCcolorcolor.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.

Similar Pine Scripts

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

Indicator v5 VolumeSupport & resistance
Updated 2 months ago · MIT GitHub repository of Volume Profile and Indicator by DGT

MGIC-tracker

by Allen1212
303 stars

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

Indicator v4 Support & resistanceVolume
Updated 2 years ago · None stated GitHub repository of MGIC-tracker
218 stars

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

Indicator v6 VolumeSupport & resistance
Updated 3 months ago · None stated GitHub repository of Comprehensive Volume Profile

Moon Dev GEX Arrows

by moondevonyt
92 stars

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

Indicator v5 Support & resistanceSessions & time
Updated 2 months ago · Custom licence GitHub repository of Moon Dev GEX Arrows

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers