OPEN-SOURCE SCRIPT

True_Range_%

Average True range percent show the the latest true range value as percentage of previous close.

Standard ATR shows the average of absolute value of True range. This is problem when price level changes over time. Because Stocks trading at higher price level e.g $1,000 will have high ATR value as compared to stocks trading $ 50. This may look like volatility has increase recently which is of-course not true. As you can see in the chart, ATR value of period before 2020 is lower than the recent period.

True Range Percentage solves value. With this script you can also find when there is a Volatility spike (1.5 time of avg) or Low volatility (0.7 times of avg).

Volatility is cyclic in nature. It oscillates between high and low. Observing this behavior can be extremely usefully in timing entry and exits.
Average True Range (ATR)

开源脚本

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

想在图表上使用此脚本?

免责声明