Indicator · Pine Script v6 · Own pane

Session Volume Averages

by eddiebelaval

This indicator plots trading volume bars in a separate pane alongside historical volume benchmarks for up to three user-defined trading sessions.

View on GitHub

GitHub stars7on the repository
Pine versionv6current
Lines of code395
Settings14inputs
LicenceNone stated
Last update3 months ago24 Jul 2026

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

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.

Details

Published by

eddiebelaval on GitHub

Type

Indicator, Pine Script v6

Draws

Separate pane below the chart

Category

Volume, Sessions & time

Markets

Any symbol

Timeframes

M1-M5, M15-H1

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

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

SettingTypeDefaultVariable
TimezoneenumTimezones.nyi_timezone
Enablebooltruei_s1Enable
Hourssession0800-1700i_s1Session
i_s1Colorcolor#9C27B0i_s1Color
Enablebooltruei_s2Enable
Hourssession0300-1200i_s2Session
i_s2Colorcolor#29B6F6i_s2Color
Enablebooltruei_s3Enable
Hourssession1900-0400i_s3Session
i_s3Colorcolor#F9A825i_s3Color
Sessions to Averageint20i_sampleSize
Vol Up / Downcolor#787B86i_volUpColor
Show all 14 settings
SettingTypeDefaultVariable
i_volDnColorcolor#363A45i_volDnColor
Enable Debugboolfalsei_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.

Similar Pine Scripts

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

Indicator v5 TrendVolatility & bands
Updated 1 year ago · MPL-2.0 GitHub repository of Trend Following Setup - Sideways Market Skipper
549 stars

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

Indicator v5 VolumeSessions & time Repaints
Updated 10 months ago · None stated GitHub repository of Range Volume Change

Nexural Flow Pro

by JasonTeixeira
9 stars

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

Indicator v6 VolumeSessions & time
Updated 12 days ago · Custom licence GitHub repository of Nexural Flow Pro

VP

by dearvn
257 stars

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

Indicator v5 VolumeSupport & resistance
Updated 6 weeks ago · None stated GitHub repository of VP
219 stars

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

Indicator v4 Sessions & timeVolume
Updated 5 years ago · None stated GitHub repository of 教學-畫垂直線1

Midnight VWAP

by TradersPost
218 stars

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

Indicator v6 Moving averagesSessions & time
Updated 3 months ago · None stated GitHub repository of Midnight VWAP

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