OPEN-SOURCE SCRIPT

ATR Percentile [racer8]

ATR Percentile shows you the percentile that the current ATR is at relative to it's previous values.
There are 3 parameters: ATR length, Percentile length, Percentile level.

This is indicator is very interesting because it's based on an indicator that originally doesn't generate signals.
When the current ATR's percentile is higher than the Percentile level, the histogram turns red signalling that the market is more volatile than usual.

For example, ATR len = 10, percentile len = 80, percentile lvl = 70
A signal will be generated when the current ATR(10) is higher than 70% of 80 of it's previous values.

ATR Percentile is range bound between 0 and 100. The histogram's value represents a percentage between that range.
ATR Percentile = ( number of ATR values below current ATR over n periods / n periods ) * 100

Enjoy 🤪
Volatility

开源脚本

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

想在图表上使用此脚本?

免责声明