PROTECTED SOURCE SCRIPT
ES 30 Second Opening Range

Overview
Tracks opening ranges across three global futures sessions (RTH, Globex, Europe) using 30-second precision sampling. Provides high/low/mid levels, 15-point projection intervals, and breakout detection for range-based trading.
What Makes This Unique
30-Second Precision: Uses request.security_lower_tf() to sample the first 30 seconds of each session, capturing exact opening range high/low rather than relying on larger timeframe bars.
Multi-Session Tracking: Simultaneously monitors RTH (8:30 AM CT), Globex (5:00 PM CT), and Europe (2:00 AM CT) opening ranges with independent calculations for 24-hour futures coverage.
15-Point Projections: RTH-specific feature plots 5 extension levels above/below opening range at 15-point intervals (+15, +30, +45, +60, +75). Calibrated for ES futures point movement.
Adjustable Scalp Levels: Customizable +/- point lines from RTH range (default 4 points) for precise entry/exit management.
How It Works
Opening Range Calculation:
Session detection: hour(time, "America/Chicago") + minute(time) * 0.01
30s data request: request.security_lower_tf(syminfo.tickerid, "30S", high/low)
Range capture: ta.valuewhen(session_time == start_time AND second == 0, array.get(data, 0), 0)
Midpoint: (high + low) / 2
At each session start, the indicator captures the first 30-second bar's high and low, then plots these as persistent levels throughout the session.
15-Point Intervals (RTH only):
Level_up[n] = RTH_high + (15 × n) where n = 1,2,3,4,5
Level_down[n] = RTH_low - (15 × n)
Breakout Detection:
Break_up = ta.crossover(close, session_high)
Break_down = ta.crossunder(close, session_low)
Statistics:
Range width = session_high - session_low (displayed in table)
How to Use
Session-Based Levels: Each session's opening range represents institutional price discovery. Use as dynamic support/resistance throughout the day.
Breakout Trading: Visual signals mark opening range breakouts. Narrow ranges (<10 points ES) often precede larger moves.
15-Point Targets: After RTH breakout, use 15-point intervals as profit targets. Example: after +15 hit, next target is +30.
Gap Analysis: Compare overnight sessions to RTH. Gaps often fill toward RTH opening range.
Scalping: Adjustable point offset provides tight profit targets from range boundaries.
Key Settings
Session Toggles: Enable/disable RTH, Globex, Europe individually
15-Point Lines: RTH-only, off by default. Shows 5 levels above/below OR at 15-point intervals
Point Offset (4.0): Adjustable for tighter (2-3) or wider (6-8) scalp levels
Range Boxes: Optional visual highlighting with adjustable transparency
Statistics Table: Shows session high, low, range width
Why Protected Source
The 30-second data aggregation using request.security_lower_tf() with time-based session detection, 15-point interval projection system calibrated for ES futures, and multi-session concurrent tracking represent proprietary implementation methods.
Important Disclaimers
Not Financial Advice. Educational tool only.
Instrument Specific. 15-point intervals optimized for ES futures. Other instruments may need different sizes.
Session Accuracy. Captures first 30 seconds only. Data gaps or late opens may affect accuracy.
Historical Limitations. Opening range effectiveness varies by market regime and volatility.
Always use proper risk management. This provides reference levels, not trade signals.
Tracks opening ranges across three global futures sessions (RTH, Globex, Europe) using 30-second precision sampling. Provides high/low/mid levels, 15-point projection intervals, and breakout detection for range-based trading.
What Makes This Unique
30-Second Precision: Uses request.security_lower_tf() to sample the first 30 seconds of each session, capturing exact opening range high/low rather than relying on larger timeframe bars.
Multi-Session Tracking: Simultaneously monitors RTH (8:30 AM CT), Globex (5:00 PM CT), and Europe (2:00 AM CT) opening ranges with independent calculations for 24-hour futures coverage.
15-Point Projections: RTH-specific feature plots 5 extension levels above/below opening range at 15-point intervals (+15, +30, +45, +60, +75). Calibrated for ES futures point movement.
Adjustable Scalp Levels: Customizable +/- point lines from RTH range (default 4 points) for precise entry/exit management.
How It Works
Opening Range Calculation:
Session detection: hour(time, "America/Chicago") + minute(time) * 0.01
30s data request: request.security_lower_tf(syminfo.tickerid, "30S", high/low)
Range capture: ta.valuewhen(session_time == start_time AND second == 0, array.get(data, 0), 0)
Midpoint: (high + low) / 2
At each session start, the indicator captures the first 30-second bar's high and low, then plots these as persistent levels throughout the session.
15-Point Intervals (RTH only):
Level_up[n] = RTH_high + (15 × n) where n = 1,2,3,4,5
Level_down[n] = RTH_low - (15 × n)
Breakout Detection:
Break_up = ta.crossover(close, session_high)
Break_down = ta.crossunder(close, session_low)
Statistics:
Range width = session_high - session_low (displayed in table)
How to Use
Session-Based Levels: Each session's opening range represents institutional price discovery. Use as dynamic support/resistance throughout the day.
Breakout Trading: Visual signals mark opening range breakouts. Narrow ranges (<10 points ES) often precede larger moves.
15-Point Targets: After RTH breakout, use 15-point intervals as profit targets. Example: after +15 hit, next target is +30.
Gap Analysis: Compare overnight sessions to RTH. Gaps often fill toward RTH opening range.
Scalping: Adjustable point offset provides tight profit targets from range boundaries.
Key Settings
Session Toggles: Enable/disable RTH, Globex, Europe individually
15-Point Lines: RTH-only, off by default. Shows 5 levels above/below OR at 15-point intervals
Point Offset (4.0): Adjustable for tighter (2-3) or wider (6-8) scalp levels
Range Boxes: Optional visual highlighting with adjustable transparency
Statistics Table: Shows session high, low, range width
Why Protected Source
The 30-second data aggregation using request.security_lower_tf() with time-based session detection, 15-point interval projection system calibrated for ES futures, and multi-session concurrent tracking represent proprietary implementation methods.
Important Disclaimers
Not Financial Advice. Educational tool only.
Instrument Specific. 15-point intervals optimized for ES futures. Other instruments may need different sizes.
Session Accuracy. Captures first 30 seconds only. Data gaps or late opens may affect accuracy.
Historical Limitations. Opening range effectiveness varies by market regime and volatility.
Always use proper risk management. This provides reference levels, not trade signals.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
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ã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
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.