OPEN-SOURCE SCRIPT

HG StdDev

200
The HG StdDev indicator provides a dynamic view of market volatility by calculating the standard deviation of a selected price source over a customizable period. Additionally, it plots a threshold line representing the highest standard deviation over a secondary lookback window.

Red Line: Current standard deviation (volatility) of the price.

Gray Line: Highest standard deviation value within the lookback range, serving as a reference for recent peak volatility.

Use this tool to identify periods of increasing or extreme volatility, potential breakout zones, or to filter signals based on volatility thresholds.

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.