OPEN-SOURCE SCRIPT

ATR Percentage of Price

This indicator takes the standard ATR and expresses it as a percentage of the OHLC4 price. This has the advantage of normalising the ATR value across the history of an asset. For example, an ATR of value 20 when the price is 2000 actually has a very different meaning when the price rises to 4000. The ATR may be the same value but actually the volatility it represents has halved.

I also add an SMA to the value and a histogram which shows the difference between the two. Positive values mean that volatility is expanding while negative values mean volatility is contracting.
Average True Range (ATR)Volatility

开源脚本

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

想在图表上使用此脚本?

免责声明