OPEN-SOURCE SCRIPT
已更新 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.
發行說明
Updated to include the current day's high and low price.開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。