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

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