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

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明