An indicator that plots volume-weighted average price lines anchored to daily, weekly and monthly periods, plus an optional rolling VWAP over a set number of bars.
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
Earlier sessions can be kept as frozen historical lines, with limits on how many are stored, and a timezone offset shifts where each period begins. Optional standard deviation bands at one, two and three sigma can be built around a chosen VWAP, using the deviation of the close rather than of VWAP. It draws on the price chart.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Timezone Offset (Hours from UTC)
int
0
timezone_offset
Show Historical VWAPs (Frozen)?
bool
true
show_history
Max Daily Sessions to Keep
int
10
max_daily_history
Max Weekly Sessions to Keep
int
5
max_weekly_history
Max Monthly Sessions to Keep
int
3
max_monthly_history
Source
source
hlc3
src
Daily VWAP
bool
true
show_daily
Daily Color
color
color.new(#FF0000, 0)
daily_color
Daily Width
int
2
daily_width
Weekly VWAP
bool
true
show_weekly
Weekly Color
color
color.new(#00FF00, 0)
weekly_color
Weekly Width
int
2
weekly_width
Show all 33 settings
Setting
Type
Default
Variable
Monthly VWAP
bool
true
show_monthly
Monthly Color
color
color.new(#FF6D00, 0)
monthly_color
Monthly Width
int
2
monthly_width
Rolling VWAP
bool
false
show_rolling
Rolling Period (Bars)
int
20
rolling_period
Rolling Color
color
color.new(#FFEB3B, 0)
rolling_color
Rolling Width
int
2
rolling_width
Show StdDev Bands?
bool
true
show_bands
Bands Source VWAP
string
Daily
bands_source
StdDev Period
int
20
stdev_period
±1σ Band
bool
true
show_band1
±2σ Band
bool
true
show_band2
±3σ Band
bool
false
show_band3
Fill ±1σ
bool
true
fill_band1
Fill ±2σ
bool
true
fill_band2
Fill ±3σ
bool
false
fill_band3
±1σ Color
color
color.new(color.gray, 85)
band1_color
±2σ Color
color
color.new(color.orange, 85)
band2_color
±3σ Color
color
color.new(color.aqua, 85)
band3_color
Show Session Start Lines?
bool
true
show_session_lines
Show Session Labels?
bool
true
show_labels
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 calculates and plots a session-based volume profile directly on the price chart. It maps volume distribution across price levels, highlighting key structural reference points including the Point of Control, Value Area High, and Value Area Low. C
The Midnight VWAP indicator calculates and overlays two distinct Volume Weighted Average Price (VWAP) lines on the price chart based on customizable session timeframes. It tracks an overnight or pre-market session alongside regular trading hours, resetting cal
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
This overlay indicator draws a volume profile for a chosen trading session directly on the price chart. It plots the point of control, value area high and low, an optional value area box, a live zone, and a session box with labels. Users select Tokyo, London,
This overlay indicator marks the current day's low and a suggested entry zone a fraction of daily ATR below that low. It compares daily volume with a volume moving average, plots daily SMA and EMA distance, and draws an optional ATR-width price cloud. Labels c
This indicator plots a Market Profile on the price chart using time-price opportunity letters or symbols. It marks the point of control, a configurable value area, and the initial balance, and it can highlight a volume-profile point of control and session VWAP