OPEN-SOURCE SCRIPT
Updated Trend Volume Accumulation R1 by JustUncleL

This simple indicator shows the Accumulated Volume within the current uptrend or downtrend. The uptrend/downtrend is detected by a change in direction of the candles which works very well with Heikin Ashi and Renko charts. Alternatively you can use a Moving average direction to indicate trend direction, which should work on any candle type.
You can select between 11 different types of moving average:
Here is a sample chart using EMA length 6 for trend Direction:

You can select between 11 different types of moving average:
- SMA = Simple Moving Average.
- EMA = Exponential Moving Average.
- WMA = Weighted Moving Average
- VWMA = Volume Weighted Moving Average
- SMMA = Smoothed Simple Moving Average.
- DEMA = Double Exponential Moving Average
- TEMA = Triple Exponential Moving Average.
- HullMA = Hull Moving Average
- SSMA = Ehlers Super Smoother Moving average
- ZEMA = Near Zero Lag Exponential Moving Average.
- TMA = Triangular (smoothed) Simple Moving Average.
Here is a sample chart using EMA length 6 for trend Direction:
Release Notes
Revision R2:- Added Option to show Running Averaged Volume within the Trend. The average using Bar count since start of trend (Bar Avg) or Time since start of Trend (Time Avg).
- Changed Short name to "TVA" - Trend Volume Accumulation
NOTE: The Running Averaged Volume option "Time Avg" is designed to be used with Renko charts and only works well short brick sizes (<=10pips) + time frames (<=15min) .
Release Notes
Missed one in last update.- Added Bar Time Normalised Trend Volume Accumulation option, this is really designed for price bar charts like Renko.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
JustUncleL
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
JustUncleL
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.