OPEN-SOURCE SCRIPT
Cập nhật Average Daily Range by Blem

Average Daily Range (ADR) Indicator
Displays the Average Daily Range of any instrument directly on your chart as a clean, screen-anchored overlay — accurate on any timeframe from 1-minute to weekly.
What it shows:
1. Average Daily Range — the N-day average of daily high-low ranges (default 14 days)
2. ADR Remaining — how much of today's average range is still uncovered, useful for setting intraday targets (optional, can be toggled off)
How it works:
ADR is calculated using actual daily candle data regardless of the timeframe you are viewing, so the value is always consistent and accurate.
Fully customizable:
• ADR lookback period
• Screen position (9 combinations — top/middle/bottom × left/center/right)
• Background color, text color, text size
• ADR Remaining color thresholds (green when range remains, red when nearly exhausted)
• Toggle ADR Remaining on/off
How to use:
Traders use ADR to understand how much movement to expect in a session. When ADR Remaining is high, there is still room for the move to continue. When it approaches zero, the daily range is nearly complete and momentum may fade.
ADR is a statistical generalization based on past price behavior.
On any given day, price may fall short of the average, or exceed it significantly. It should never be treated as a guaranteed target or a hard boundary.
Use it as a general reference for expected daily movement, not as a precise prediction.
Displays the Average Daily Range of any instrument directly on your chart as a clean, screen-anchored overlay — accurate on any timeframe from 1-minute to weekly.
What it shows:
1. Average Daily Range — the N-day average of daily high-low ranges (default 14 days)
2. ADR Remaining — how much of today's average range is still uncovered, useful for setting intraday targets (optional, can be toggled off)
How it works:
ADR is calculated using actual daily candle data regardless of the timeframe you are viewing, so the value is always consistent and accurate.
Fully customizable:
• ADR lookback period
• Screen position (9 combinations — top/middle/bottom × left/center/right)
• Background color, text color, text size
• ADR Remaining color thresholds (green when range remains, red when nearly exhausted)
• Toggle ADR Remaining on/off
How to use:
Traders use ADR to understand how much movement to expect in a session. When ADR Remaining is high, there is still room for the move to continue. When it approaches zero, the daily range is nearly complete and momentum may fade.
ADR is a statistical generalization based on past price behavior.
On any given day, price may fall short of the average, or exceed it significantly. It should never be treated as a guaranteed target or a hard boundary.
Use it as a general reference for expected daily movement, not as a precise prediction.
Phát hành các Ghi chú
Here's the updated description reflecting all the current features:Average Daily Range (ADR) Indicator
Displays the Average Daily Range of any instrument on your chart as a clean, screen-anchored overlay — accurate on any timeframe from 1-minute to weekly.
What it shows
Average Daily Range — N-day average of daily high-low ranges (default 14 days)
ADR Used — how much of the ADR has been consumed from today's open (optional)
ADR Remaining — how much range can still be expected in the current direction from current price (optional)
ADR Lines — horizontal lines on the chart marking the projected ADR high and low levels for the day (optional)
Important — this is an average, not a target
ADR is a statistical generalization based on past price behavior. On any given day price may fall short of the average or exceed it significantly. Use it as a general reference for expected daily movement, not as a precise prediction.
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.