OPEN-SOURCE SCRIPT
DTR & ATR & RVol

DTR & ATR with Live Zones + Relative Volume
Combines two essential intraday tools in a single overlay indicator:
DTR vs ATR — compares today's Daily Trading Range (actual high–low) against the Average True Range (ATR). Displayed as a percentage so you instantly see where the day stands relative to its historical average range. The info box turns green (< 70%), yellow (70–90%), or red (≥ 90%) to signal how extended the move already is.
ATR Zone Lines & Boxes — draws horizontal lines and shaded zones at 100%, 150%, 200%, 250%, and 300% of the ATR, anchored to the session open. Lines update dynamically as price discovers the day's range, then lock in once the full ATR is covered. Fully customisable colours, thickness, and label styles per level.
Relative Volume (RVol) — measures today's volume activity versus the N-day historical average. Two modes:
All inputs are fully configurable: ATR length and smoothing method (EMA/RMA/SMA/WMA), RVol lookback period and mode, session time and time zone, individual on/off toggles and colour pickers for every ATR level, and table position/size.
Based on the original "DTR & ATR with live zones" by Mereep01, extended with a time-consistent Relative Volume engine.
Combines two essential intraday tools in a single overlay indicator:
DTR vs ATR — compares today's Daily Trading Range (actual high–low) against the Average True Range (ATR). Displayed as a percentage so you instantly see where the day stands relative to its historical average range. The info box turns green (< 70%), yellow (70–90%), or red (≥ 90%) to signal how extended the move already is.
ATR Zone Lines & Boxes — draws horizontal lines and shaded zones at 100%, 150%, 200%, 250%, and 300% of the ATR, anchored to the session open. Lines update dynamically as price discovers the day's range, then lock in once the full ATR is covered. Fully customisable colours, thickness, and label styles per level.
Relative Volume (RVol) — measures today's volume activity versus the N-day historical average. Two modes:
- [Cumulative (default): total volume accumulated so far today (including pre-market and after-hours) divided by the N-day average full-day total. Grows throughout the session; values above 100% mean today is running above average volume.
- Pace: compares each individual bar's volume to the N-session EWMA for that same bar slot — a stable per-bar reading that is not distorted by the naturally high opening volume.
All inputs are fully configurable: ATR length and smoothing method (EMA/RMA/SMA/WMA), RVol lookback period and mode, session time and time zone, individual on/off toggles and colour pickers for every ATR level, and table position/size.
Based on the original "DTR & ATR with live zones" by Mereep01, extended with a time-consistent Relative Volume engine.
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。