OPEN-SOURCE SCRIPT
Cập nhật Daily ATR Box

Daily ATR Box
This indicator plots a dynamic ATR-based price box anchored to key daily levels, giving you a clean visual range target directly on your chart.
How It Works
The box is sized by the Daily ATR (Average True Range) multiplied by a user-defined multiplier, so the range always reflects current volatility. You choose what price level anchors the box, and the indicator handles the rest — placing the box either above or below the anchor depending on the mode selected.
Anchor Modes
Previous Day High — Box top sits at PDH, extending downward by one ATR. Useful for gauging how far price may retrace after reclaiming the prior high.
Previous Day Low — Box bottom sits at PDL, extending upward by one ATR. Great for measuring bounce potential off prior lows.
Premarket High — Box top sits at the current session's premarket high (4:00 AM – 9:30 AM ET), extending downward. Updates live during premarket and locks at the open.
Premarket Low — Box bottom sits at the current session's premarket low, extending upward. Updates live during premarket and locks at the open.
Current Close — Box floats with the current bar's close. Useful for intraday range projection.
Manual Price — Set any price level as the anchor for full custom control.
Features
ATR length and multiplier are fully adjustable
Drag Offset input lets you shift the box up or down freely without changing the anchor
Box width adjustable in bars
Optional right extension to project the zone forward
Customizable fill and border colors
Label displays the live ATR value, anchor mode, anchor price, and offset
Box Top, Box Bottom, PDH, PDL, Premarket High, and Premarket Low all plotted to the Data Window for easy reference
Recommended Usage
Works on any timeframe but is designed around the daily ATR, so it is most useful on intraday charts (1m – 15m) where the daily range provides meaningful context. Pair it with your existing support/resistance levels or volume profile to identify high-probability reaction zones within the expected daily range.
Phát hành các Ghi chú
Updated to include the current day's high and low price.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.