OPEN-SOURCE SCRIPT

Historical Volatility Percentile: Price and Volume

18 832
This is an expansion of the Historical Volatility scripts to include both price and volume volatility.

As Tradingview states:
Historical Volatility is a measure of how much price (and now volume ) deviates from its average in a specific time period that can be set. The more price (or/and volume ) fluctuates, the higher the indicator value. Please note it does not measure the direction of price (and volume ) changes, just how volatile price/ volume has become. There are several reasons to care about volatility but it's mainly a risk measure. As volatility increases, so does risk and uncertainty and vice versa. Traders can use the indicator to flag instruments with high volatility which could point to a trend change. It is often used in combination with other signals.

Example options
snapshot

Example formats
snapshot

Link back to some other great ideas:
@Cheatcountry with his prolific sharing, what a great inspiration.
@Picte and his inspired idea.
@Balipour and his great script


Comparing this to other significant HVP indicators
snapshot
Notes de version
Updating to Pinescript Version 5, added titles
Thanks Zettt

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.