OPEN-SOURCE SCRIPT
Cập nhật ATR Range Adaptive

ATR Range Adaptive — TF-adaptive volatility bands with dashboard.
A precision volatility tool that projects the statistical extent of a "normal" bar move as five horizontal levels around the previous close — and recalculates automatically on whatever timeframe you're viewing.
How it works:
Add the indicator once. From the previous closed bar of the current chart timeframe it draws the middle line (previous close) plus four ATR-multiplied bands — ±0.5 × ATR and ±1.0 × ATR. Switch to 1H → hourly levels. Switch to 5M → 5-minute levels. No presets to change.
What it shows:
- Previous close as the anchor (middle line)
- +100% band (upper strong resistance) at previous close + 1 × ATR
- +50% band (intermediate resistance) at previous close + 0.5 × ATR
- -50% band (intermediate support) at previous close - 0.5 × ATR
- -100% band (lower strong support) at previous close - 1 × ATR
- Corner dashboard: current TF, previous close, 1 ATR as a percentage of price, and each level's value + distance from the live price
Key features:
- Fully TF-adaptive: no fixed daily/monthly assumption — bands follow the chart's timeframe
- Selectable ATR smoothing: RMA (Wilder), EMA, SMA, WMA
- Adjustable ATR length and multiplier
- Level lines extend a configurable number of bars to the right
- Middle line can be toggled independently of the ATR bands
- Dashboard: 6 anchor positions, 4 text sizes, adjustable cell transparency
- Full color palette for each band + header and text
- Tooltip on "1 ATR, %" explains volatility bands (low / normal / elevated / high)
- Clean overlay: only 5 lines and 1 dashboard, no chart clutter
Who it's for:
Traders who want a fast, timeframe-aware read on how far price has already stretched from the previous close — and where a "normal" move statistically ends. Useful for intraday range trading, scalping around ATR extremes, sizing stops, and spotting bars that break out of typical volatility.
A precision volatility tool that projects the statistical extent of a "normal" bar move as five horizontal levels around the previous close — and recalculates automatically on whatever timeframe you're viewing.
How it works:
Add the indicator once. From the previous closed bar of the current chart timeframe it draws the middle line (previous close) plus four ATR-multiplied bands — ±0.5 × ATR and ±1.0 × ATR. Switch to 1H → hourly levels. Switch to 5M → 5-minute levels. No presets to change.
What it shows:
- Previous close as the anchor (middle line)
- +100% band (upper strong resistance) at previous close + 1 × ATR
- +50% band (intermediate resistance) at previous close + 0.5 × ATR
- -50% band (intermediate support) at previous close - 0.5 × ATR
- -100% band (lower strong support) at previous close - 1 × ATR
- Corner dashboard: current TF, previous close, 1 ATR as a percentage of price, and each level's value + distance from the live price
Key features:
- Fully TF-adaptive: no fixed daily/monthly assumption — bands follow the chart's timeframe
- Selectable ATR smoothing: RMA (Wilder), EMA, SMA, WMA
- Adjustable ATR length and multiplier
- Level lines extend a configurable number of bars to the right
- Middle line can be toggled independently of the ATR bands
- Dashboard: 6 anchor positions, 4 text sizes, adjustable cell transparency
- Full color palette for each band + header and text
- Tooltip on "1 ATR, %" explains volatility bands (low / normal / elevated / high)
- Clean overlay: only 5 lines and 1 dashboard, no chart clutter
Who it's for:
Traders who want a fast, timeframe-aware read on how far price has already stretched from the previous close — and where a "normal" move statistically ends. Useful for intraday range trading, scalping around ATR extremes, sizing stops, and spotting bars that break out of typical volatility.
Phát hành các Ghi chú
Release Notes — v1.1▶ TWEAK: Renamed from "ATR Range Probability" to "ATR Range Adaptive"
The indicator's full title has been changed from "ATR Range Probability" to "ATR Range Adaptive" to better reflect what the tool actually does. The core value is not a static probability model but the ability to recalculate the ATR bands on whatever timeframe you are viewing — switch to 1H → hourly levels, switch to 5M → 5-minute levels. The new name makes that TF-adaptive behaviour explicit in the library and on the chart legend. The short title, algorithm, inputs, dashboard layout and all default values remain unchanged.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.