OPEN-SOURCE SCRIPT

Exponential weighted volatility

Estimator of current annualized volatility that works for daily, weekly, monthly timeframes.
Lambda should be choosen inside the 0 to 1 range, with a lower lambda giving more weight to the movement in the most recent candlesticks. The literature default is 0.97, I'm setting a default value of 0.94 instead.
Volatility

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer