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
For each active session, it calculates two benchmarks over a selectable sample size of past sessions: an overall session mean volume-per-bar and a bar-position average matching the bar's specific ordinal time within the session. Settings allow users to configure timezones, session windows, line colors, and display an optional diagnostic debug table.
Overall mean volume-per-bar over historical sessions
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Timezone
enum
Timezones.ny
i_timezone
Enable
bool
true
i_s1Enable
Hours
session
0800-1700
i_s1Session
i_s1Color
color
#9C27B0
i_s1Color
Enable
bool
true
i_s2Enable
Hours
session
0300-1200
i_s2Session
i_s2Color
color
#29B6F6
i_s2Color
Enable
bool
true
i_s3Enable
Hours
session
1900-0400
i_s3Session
i_s3Color
color
#F9A825
i_s3Color
Sessions to Average
int
20
i_sampleSize
Vol Up / Down
color
#787B86
i_volUpColor
Show all 14 settings
Setting
Type
Default
Variable
i_volDnColor
color
#363A45
i_volDnColor
Enable Debug
bool
false
i_debug
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 Supertrend-based trend-following setup in a separate pane and skips conditions it treats as a sideways market. A volatility range is built from an ATR value, with RMA, SMA, EMA, or WMA smoothing, or from a fixed point distance. Optional
Range Volume Change compares volume inside a chosen session window with the same window on the previous day and plots that change as a percentage. It accumulates volume during the window and, when enabled, volume outside it, drawing growing columns in a separa
Nexural Flow Pro plots real order flow data in a separate pane as stacked buy and sell volume columns. It highlights imbalances at 3:1 ratios with glow effects, detects absorption patterns, and marks unfinished auction continuations. Session filtering optional
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
An educational Pine Script v4 indicator demonstrating how to plot volume histograms on the main price chart using unscaled axes. The code includes examples and commented templates for creating vertical line markers at specific dates or time zones, such as mark
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