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.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.