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

Mã nguồn mở

Theo tinh thần TradingView thực sự, tác giả của tập lệnh này đã xuất bản dưới dạng nguồn mở để các nhà giao dịch có thể hiểu và xác minh. Chúc mừng tác giả! Bạn có thể sử dụng miễn phí. Tuy nhiên, bạn cần sử dụng lại mã này theo Quy tắc nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?

Thông báo miễn trừ trách nhiệm