Indicator · Pine Script v6 · Own pane

Volume Average [UkutaLabs]

by eddiebelaval· code credited to UkutaLabs

This indicator plots volume columns alongside an exponential moving average line of volume in a separate pane.

View on GitHub

GitHub stars7on the repository
Pine versionv6current
Lines of code25
Settings7inputs
LicenceNone statedfile: MPL-2.0
Last update3 months ago24 Jul 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above, or the copy button on the code below.
  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

25 lines of Pine Script v6 from pinescript/volume/volume-average-ukutalabs.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.

volume-average-ukutalabs.pine
// This Pine Script® code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © UkutaLabs

//@version=6
indicator("Volume Average [UkutaLabs]")
import UkutaLabs/UkutaLabs_General_library/1 as ulgl

color BullishColor = input.color(defval=color.green, title="Bullish", group="Volume Bars")
color BearishColor = input.color(defval=color.red, title="Bearish", group="Volume Bars")
color NeutralColor = input.color(defval=color.gray, title="Below Average", group="Volume Bars")

int LookBackPeriod = input(defval=13, title="Look Back Period (Bars)", group="Average Volume Line")
color LineColor = input.color(defval=color.yellow, title="Line Color", group="Average Volume Line")
int LineWidth = input(defval=2, title="Line Width", group="Average Volume Line")

bool AlertVolume = input.bool(defval=true, title="Above Average Volume", group="Volume Alerts")

plot(volume, "Volume", style = plot.style_columns, color= volume > ta.ema(volume, LookBackPeriod) ? ulgl.isGreenBar() ? BullishColor : BearishColor : NeutralColor)
plot(ta.ema(volume, LookBackPeriod), "VolumeAvg", style = plot.style_line, color= LineColor, linewidth = LineWidth)

float VolumeAvg = ta.ema(volume, LookBackPeriod)
if(AlertVolume and volume > VolumeAvg and barstate.isrealtime)
    alert("Above Average Volume", alert.freq_once_per_bar)

//plotshape(AlertVolume and volume > VolumeAvg, style=shape.circle, location=location.abovebar, color=color.green, size=size.small, force_overlay = true, title="Alert Signal Dot")

Overview

Volume Average [UkutaLabs] compares current bar volume against its 13-period average by default. When volume exceeds the exponential moving average, columns are colored green for bullish bars or red for bearish bars based on bar price action. If volume falls below the average line, columns display in a neutral gray. Users can adjust the lookback period, customize styling, and trigger real-time alerts for volume spikes.

Details

Published by

eddiebelaval on GitHub

Code credit

UkutaLabs, as written in the script's header

Type

Indicator, Pine Script v6

Draws

Separate pane below the chart

Category

Volume, Moving averages

Markets

Any symbol

Timeframes

Any timeframe

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
Bullishcolorcolor.greenBullishColor
Bearishcolorcolor.redBearishColor
Below Averagecolorcolor.grayNeutralColor
Look Back Period (Bars)int13LookBackPeriod
Line Colorcolorcolor.yellowLineColor
Line Widthint2LineWidth
Above Average VolumebooltrueAlertVolume
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

Aggregate Signal (v.2)

by capissimo
114 stars

Aggregate Signal (v.2) is an oscillator indicator that combines multiple technical factors into a single composite score. It scales OHLCV data using minimax normalization and evaluates indicators such as MACD, RSI, Stochastic, CCI, Momentum, On-Balance Volume,

Indicator v4 Oscillators & momentumMoving averages Repaints
Updated 1 year ago · None stated GitHub repository of Aggregate Signal (v.2)

Volume-Weighted MACD

by mihakralj
99 stars

This indicator plots a volume-weighted MACD in a separate pane. It subtracts a slow volume-weighted moving average of close from a faster one, then smooths that line with an exponential moving average to form the signal. A column histogram shows the gap betwee

Indicator v5 Oscillators & momentumMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Volume-Weighted MACD

PPO ATR Bands

by cryptorife
75 stars

PPO ATR Bands plots a percentage price oscillator in a separate pane. It compares a Hull average of typical price with a volume-weighted exponential average of Parabolic SAR, then scales three true-range bands around the slow average into matching oscillator l

Indicator v4 Oscillators & momentumMoving averages
Updated 3 years ago · GPL-3.0 GitHub repository of PPO ATR Bands

RSI-VWMA

by Zettt
43 stars

This indicator calculates the Relative Strength Index using a volume-weighted moving average of the closing price as its source. It plots the resulting oscillator in a separate pane alongside configurable overbought and oversold threshold lines. The plot line

Indicator v4 Oscillators & momentumMoving averages
Updated 1 year ago · None stated GitHub repository of RSI-VWMA

Trap Shorts - Hamza Naveed

by ProfHamzaNaveed
43 stars

This indicator tracks and visualizes cryptocurrency net positioning across multiple derivative exchanges, including Binance, BitMEX, and Kraken. It calculates aggregated net longs, net shorts, net delta, and ratio metrics, or an optional Position RSI, renderin

Indicator v5 VolumeOscillators & momentum
Updated 9 months ago · None stated GitHub repository of Trap Shorts - Hamza Naveed

On Balance Volume

by TWODS-CAPITAL
37 stars

This indicator plots the standard On Balance Volume (OBV) in a separate pane by accumulating volume based on the direction of price changes. It includes an optional smoothing line that can apply a Simple, Exponential, Smoothed, Weighted, or Volume-Weighted Mov

Indicator v5 VolumeMoving averages
Updated 3 years ago · MIT GitHub repository of On Balance Volume

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