OPEN-SOURCE SCRIPT

Natenberg's Volatility

This indicator is historical volatility indicator created by Sheldon Natenberg, as the standard deviation of the logarithmic price changes measured at regular intervals of time.
In Mr. Natenberg's book, Option Volatility & Pricing, he covers volatility in detail and gives the formula for computing historical volatility.

My changes:
I didn't changed formula, i just added smooth version of volatility it can be used as trigger when cross(over/under) non-smoothed volatility.

Note:
There is two formulas for daily and weekly. Indicator showing only daily formula!
Who wants to display the weekly formula change line 17, namely remove "//"

Enjoy!
natenbergVolatility

Script de código aberto

No verdadeiro espírito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam compreendê-lo e analisá-lo. Parabéns ao autor! Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Quer usar esse script no gráfico?

Aviso legal