โ† All Scripts

Session-Based Custom ORB Indicator (NSE / US)

Ravindran
2mo ago
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. 

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 GoCharting. Read more in the Terms of Use.

โ†— Related Scripts

Comments (0)

Loading commentsโ€ฆ