OPEN-SOURCE SCRIPT
Updated ON sqrtRange -> RTH Open Levels

Overnight sqrtRange → RTH Open Levels
This indicator captures the overnight session range (6 PM – 9:30 AM ET), takes the square root of that range, multiplies it by a user-defined factor, and snaps the result to the nearest tick to produce a dynamic unit (U). Starting from the RTH open at 9:30 AM, it plots up to 8 levels above and below, creating a structured price map for the entire trading day.
Features:
-Auto-calculated unit size from overnight range math
-Up to 8 levels each side with color-coded band fills and midpoints
-ONH / ONL lines with breach markers
-Day type classifier at open (Trend Up / Trend Down / Two-sided)
-Gap detection above ONH or below ONL at the open
-Live info table showing range, sqrtR, unit size, nearest levels, and tick distances
-Alert conditions for every level cross, ONH/ONL breach, and gap opens
-All levels drawn with line objects — zero plot budget wasted
Best used on: ES, NQ futures, but not limited to, individual names may need to tweak the settings for individual names to avoid big or small ranges, which is what the multiplier setting is for(I typically only work with 1,2,4,8 on the multiplier)
For ES, 2x multiplier is ideal and 4x on NQ and dow
individual names vary but typically 1x-2x on the multiplier
This indicator captures the overnight session range (6 PM – 9:30 AM ET), takes the square root of that range, multiplies it by a user-defined factor, and snaps the result to the nearest tick to produce a dynamic unit (U). Starting from the RTH open at 9:30 AM, it plots up to 8 levels above and below, creating a structured price map for the entire trading day.
Features:
-Auto-calculated unit size from overnight range math
-Up to 8 levels each side with color-coded band fills and midpoints
-ONH / ONL lines with breach markers
-Day type classifier at open (Trend Up / Trend Down / Two-sided)
-Gap detection above ONH or below ONL at the open
-Live info table showing range, sqrtR, unit size, nearest levels, and tick distances
-Alert conditions for every level cross, ONH/ONL breach, and gap opens
-All levels drawn with line objects — zero plot budget wasted
Best used on: ES, NQ futures, but not limited to, individual names may need to tweak the settings for individual names to avoid big or small ranges, which is what the multiplier setting is for(I typically only work with 1,2,4,8 on the multiplier)
For ES, 2x multiplier is ideal and 4x on NQ and dow
individual names vary but typically 1x-2x on the multiplier
Release Notes
Overnight sqrtRange → RTH Open LevelsThis indicator captures the overnight session range (6 PM – 9:30 AM ET), takes the square root of that range, multiplies it by a user-defined factor, and snaps the result to the nearest tick to produce a dynamic unit (U). Starting from the RTH open at 9:30 AM, it plots up to 8 levels above and below, creating a structured price map for the entire trading day.
Features:
-Auto-calculated unit size from overnight range math
-Up to 8 levels each side with color-coded band fills and midpoints
-ONH / ONL lines with breach markers
-Day type classifier at open (Trend Up / Trend Down / Two-sided)
-Gap detection above ONH or below ONL at the open
-Live info table showing range, sqrtR, unit size, nearest levels, and tick distances
-Alert conditions for every level cross, ONH/ONL breach, and gap opens
-All levels drawn with line objects — zero plot budget wasted
For ES, a 2x multiplier is recommended. NQ and DOW perform well at 4x. Individual names typically fall in the 1x–2x range depending on their average overnight range.
The multiplier is the primary tuning parameter — increase it to expand levels on instruments with a compressed overnight range, or reduce it when levels are too wide. Standard values: 1, 2, 4, 8.
Release Notes
added cumulative delta to table toggle top 5 overnight highest vol lvls
prev day levels toggle
should be final update for a long time
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.