OPEN-SOURCE SCRIPT
Ash — ORB / Premkt / PrevDay (Updates Bar by Bar)

This indicator dynamically builds three essential intraday levels bar by bar, updating in real time as new candles form:
✅ 15-Minute Opening Range (ORB)
Actively tracks the high and low of the first 15 minutes after the opening bell (09:30–09:45 EST).
Values update bar-by-bar during this window, then lock in at 09:45 and extend across the rest of the day.
✅ Premarket High & Low
Captures the overnight/pre-market session (default: 04:00–09:30 EST).
Levels develop bar-by-bar during premarket, then freeze at 09:30 and extend through the regular session.
✅ Previous Day High & Low
Marks the prior day’s regular trading session high and low.
Plotted at today’s open and extended across the current session.
🔹 Why use this version:
Lets you see the ranges forming live before they are finalized.
Great for traders who want to anticipate breakouts, not just react once levels are locked.
Useful for gauging momentum during the first 15 minutes or spotting liquidity grabs in premarket.
⚙️ Customization:
Toggle ORB, Premarket, and Previous Day levels on/off.
Adjust line colors, widths, and number of historical days to keep.
📌 Best For:
Day traders who want live-updating levels during the open and premarket, with automatic lock-in once each session completes.
✅ 15-Minute Opening Range (ORB)
Actively tracks the high and low of the first 15 minutes after the opening bell (09:30–09:45 EST).
Values update bar-by-bar during this window, then lock in at 09:45 and extend across the rest of the day.
✅ Premarket High & Low
Captures the overnight/pre-market session (default: 04:00–09:30 EST).
Levels develop bar-by-bar during premarket, then freeze at 09:30 and extend through the regular session.
✅ Previous Day High & Low
Marks the prior day’s regular trading session high and low.
Plotted at today’s open and extended across the current session.
🔹 Why use this version:
Lets you see the ranges forming live before they are finalized.
Great for traders who want to anticipate breakouts, not just react once levels are locked.
Useful for gauging momentum during the first 15 minutes or spotting liquidity grabs in premarket.
⚙️ Customization:
Toggle ORB, Premarket, and Previous Day levels on/off.
Adjust line colors, widths, and number of historical days to keep.
📌 Best For:
Day traders who want live-updating levels during the open and premarket, with automatic lock-in once each session completes.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.