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.

Penafian

Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.