OPEN-SOURCE SCRIPT

ATR/DTR[jackieee]

634
Description

This indicator compares the current range (DTR) with the Average True Range (ATR) of a selected timeframe and displays the result in a compact table on the chart. Its purpose is to show how much of the market’s “normal” move has already been used.

The logic is straightforward: ATR measures the average volatility over time, while DTR measures the actual high-to-low range of the current bar on the chosen timeframe. The script then calculates DTR / ATR × 100, which shows the current range as a percentage of ATR. This makes it easy to judge whether price is moving within a normal range, approaching an average full move, or already extending beyond it.

A custom threshold can also be set so the table changes color once the current range reaches a chosen percentage of ATR. This helps highlight when volatility is becoming unusually large and can be useful for intraday awareness, range expansion analysis, and managing expectations after a strong move.

Pernyataan Penyangkalan

Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.