OPEN-SOURCE SCRIPT
Updated Volume Z-Score Bar Color

A simple script help you identify significant upticks in volume for a particular candle.
Using the standard z-score calculation you can change the bar color based on the user selected standard deviation range.
Calculation
z = (x - μ) / σ, where:
z: is the z-score
x: is the current volume
μ: is the mean volume
σ: is the standard deviation
Options include setting the bottom and top end of the deviation range. This will allow you to see a moderated uptick in volume as well as an extreme uptick. You can also choose the colors for the moderate bull/bear volume and extreme bull/bear volume.
Using the standard z-score calculation you can change the bar color based on the user selected standard deviation range.
Calculation
z = (x - μ) / σ, where:
z: is the z-score
x: is the current volume
μ: is the mean volume
σ: is the standard deviation
Options include setting the bottom and top end of the deviation range. This will allow you to see a moderated uptick in volume as well as an extreme uptick. You can also choose the colors for the moderate bull/bear volume and extreme bull/bear volume.
Release Notes
Updated option to chose median or mean as the averaging calculationRelease Notes
Added volume bars that change colors along with the chart.Release Notes
Code clean up.Release Notes
Updating formatting to condense the volume scaleRelease Notes
Update to include more options for the standard deviation and bar colors as well as added the ability to chose the volume source.Release Notes
Added protection if the ticker does not exist on the chosen chart.Release Notes
Bugfix for error caused by invalid tickerIdOpen-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.
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.
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.