OPEN-SOURCE SCRIPT
ATR/DTR[jackieee]

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.
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.
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。