OPEN-SOURCE SCRIPT
Обновлено Prev-Day High-Low Box 09:30-15:30

This indicator plots a visual range box for the previous day's regular trading session, based specifically on 09:30 AM to 3:30 PM market hours (Eastern Time by default).
Features:
Use it to:
This tool is handy for day traders and scalpers who want to map out the structure of prior sessions during live trading hours.
Features:
- Automatically detects each new trading day
- Draws a box from the previous day’s high to low
- Box extends into the current session for a set number of bars (default: 160)
- Labels mark the previous high and previous low individually
- Clean and minimal — only one box and label set is drawn at a time
- Works on intraday timeframes (1min, 5min, 15min, etc.)
Use it to:
- Identify zones of interest from the last session
- Watch for breakouts, reversals, or mean reversion setups
- Combine with VWAP, moving averages, or price action for added context
This tool is handy for day traders and scalpers who want to map out the structure of prior sessions during live trading hours.
Информация о релизе
This indicator plots a visual range box for the previous day's regular trading session, based specifically on 09:30 AM to 3:30 PM market hours (Eastern Time by default).Features:
- Automatically detects each new trading day
- Draws a box from the previous day’s high to low
- Box extends into the current session for a set number of bars (default: 160)
- Labels mark the previous high and previous low individually
- Clean and minimal — only one box and label set is drawn at a time
- Works on intraday timeframes (1min, 5min, 15min, etc.)
Use it to:
- Identify zones of interest from the last session
- Watch for breakouts, reversals, or mean reversion setups
- Combine with VWAP, moving averages, or price action for added context
This tool is handy for day traders and scalpers who want to map out the structure of prior sessions during live trading hours.
Информация о релизе
Fix Notes – v1.1 "Timeframe Mismatch Resolved"When switching between intraday timeframes (e.g., 1m → 5m → 15m), the high-low box and labels shifted or misaligned. This issue arose from anchoring the box to bar_index, which varies by resolution.
Информация о релизе
Fix Notes – v1.2 "Chart Sterilization"All indicators and drawings have been removed to create a clean and minimal chart layout.
Some users mentioned the chart was hard to read, so I made it very sterile and stripped it down to the essentials, only the Previous Day High-Low Box remains.
This version fully complies with TradingView's publishing guidelines by focusing purely on the core indicator
Информация о релизе
Fix Notes – v2.0 "Pre-Market Box"Pre‑Market High/Low Box (04:00–09:30 ET by default)
- Tracks intraday pre‑market extremes and auto‑draws a box once pre‑market ends.
Color Options Split
- RTH and PM boxes now have their own fill/border color inputs to avoid confusion and allow easy theming.
Day Flip Resets
- Reset/deletion logic runs cleanly at each calendar day change, preventing boxes/labels from carrying over from the previous day.
Скрипт с открытым кодом
В истинном духе TradingView автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения.
Отказ от ответственности
Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.
Скрипт с открытым кодом
В истинном духе TradingView автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения.
Отказ от ответственности
Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.