Session-Based Custom ORB Indicator (NSE / US)
๐ Session-Based Custom ORB Indicator (NSE / US)
This indicator is a flexible version of the popular Opening Range Breakout (ORB) strategy.
It allows you to define any custom time window during the trading session and automatically:
Captures the highest high and lowest low within that time window
Draws horizontal breakout levels (like ORB lines)
Plots the midpoint of the range
Generates a signal only on the first breakout per side
Resets automatically at the next session open
๐ What Is an Opening Range?
The โopening rangeโ is the price range formed during a specific time window after market open (for example, 9:15โ9:30 in NSE or 9:30โ9:45 in US markets).
Traders watch this range because:
A breakout above the range high can indicate bullish strength
A breakdown below the range low can indicate bearish weakness
โ๏ธ How This Indicator Works
1๏ธโฃ Session Selection
You can choose between:
NSE session (9:15โ15:30)
US session (9:30โ16:00)
The indicator automatically adapts to the selected market timing.
2๏ธโฃ Custom Time Window
You define:
Range Start Hour & Minute
Range End Hour & Minute
During this window:
The script continuously updates the highest high
The script continuously updates the lowest low
3๏ธโฃ Range Locking
Once the selected time window ends:
The range becomes โlockedโ
Three levels are plotted:
๐น Range High (Green)
๐น Range Low (Red)
๐ต Midpoint (Blue)
These lines remain visible only during the active session.
4๏ธโฃ Breakout Signals
The indicator generates:
โฒ Green triangle when price breaks above the range high
โผ Red triangle when price breaks below the range low
Important:
Only the first breakout per direction is marked.
This avoids repeated signals and keeps charts clean.
๐ฏ Why This Version Is Useful
โ Works on intraday charts
โ Session-aware (no overnight plotting)
โ Fully automatic reset every day
โ Clean and non-repainting logic
โ Customizable for different markets
๐ค Who Can Use This?
Beginners learning ORB concepts
Intraday traders
Scalpers
Traders who want custom range breakouts (not just first 15 minutes)
๐ก Pro Tip for New Traders
Opening range breakouts work best when:
Volume confirms the breakout
Overall market trend supports the direction
Risk management is clearly defined
Always test on paper or small size before using real capital.
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 GoCharting. Read more in the Terms of Use.
โ Related Scripts
Comments (0)
Loading commentsโฆ
