OPEN-SOURCE SCRIPT
Updated Volume with Configurable Moving Averages

Volume with Configurable Moving Averages displays volume based on the current timeframe. For example, on a daily chart the volume shown is for the day. On a weekly chart, the volume is cumulative for the week.
There is also an option to configure the volume moving average lengths. The default for a daily chart is to calculate the 50-day moving average. On a weekly chart, the default is the 10-week moving average.
Features:
■ Configure moving average lengths for various chart timeframes.
■ Set width of volume bars.
■ Option to set bar color based on the previous close.
Learning Pine Script / Creating Your Own Indicators
One goal of this indicator is help others who are interested to learn Pine Script. The code is open source and I've included an abundance of comments. In future updates, I'll show additional Pine Script features and scripting concepts.
There is also an option to configure the volume moving average lengths. The default for a daily chart is to calculate the 50-day moving average. On a weekly chart, the default is the 10-week moving average.
Features:
■ Configure moving average lengths for various chart timeframes.
■ Set width of volume bars.
■ Option to set bar color based on the previous close.
Learning Pine Script / Creating Your Own Indicators
One goal of this indicator is help others who are interested to learn Pine Script. The code is open source and I've included an abundance of comments. In future updates, I'll show additional Pine Script features and scripting concepts.
Release Notes
version 2.0 ■ Minor updates to the interface.
Release Notes
version 3.0■ Update to how the volume bar colors are determined.
Release Notes
version 4.0■ Updated formatting of the volume scale on the right.
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.
For quick access on a chart, add this script to your favorites — learn more here.
LevelUp Your Trading ~ TradingView® Indicators & Screeners: LevelUpTools.net
Buy Me A Beer: LevelUpTools.gumroad.com/coffee
Thank you for your support! 🍻
Buy Me A Beer: LevelUpTools.gumroad.com/coffee
Thank you for your support! 🍻
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.
For quick access on a chart, add this script to your favorites — learn more here.
LevelUp Your Trading ~ TradingView® Indicators & Screeners: LevelUpTools.net
Buy Me A Beer: LevelUpTools.gumroad.com/coffee
Thank you for your support! 🍻
Buy Me A Beer: LevelUpTools.gumroad.com/coffee
Thank you for your support! 🍻
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.