OPEN-SOURCE SCRIPT
Opening Range Breakout

This indicator is designed for Opening Range Breakout (ORB) traders who want automatic calculation of breakout levels and multiple price targets.
It is optimised for NSE intraday trading, capturing the first 15-minute range from 09:15 to 09:30 and plotting key breakout targets for both long and short trades.
✨ Features:
Automatic daily reset — fresh levels are calculated every trading day.
Opening Range High & Low plotted immediately after 09:30.
Two profit targets for both Buy & Sell breakouts based on the opening range size:
T1 = 100% of range added/subtracted from OR high/low.
T2 = 200% of range added/subtracted from OR high/low.
Clear breakout signals (BUY / SELL labels) when price crosses the OR High or Low.
Custom alerts for both buy and sell triggers.
Designed to work on any intraday timeframe (1min, 3min, 5min, etc.).
📊 How it works:
From 09:15 to 09:30, the script records the highest and lowest prices.
At 09:30, the range is locked in and breakout targets are calculated automatically.
Buy and Sell signals are generated when price breaks above the OR High or below the OR Low.
Targets and range lines automatically reset for the next day.
⚠️ Notes:
This script is tuned for NSE market timings but can be adapted for other markets by changing the session input.
Works best on intraday charts for active traders.
This is not financial advice — always backtest before trading live.
It is optimised for NSE intraday trading, capturing the first 15-minute range from 09:15 to 09:30 and plotting key breakout targets for both long and short trades.
✨ Features:
Automatic daily reset — fresh levels are calculated every trading day.
Opening Range High & Low plotted immediately after 09:30.
Two profit targets for both Buy & Sell breakouts based on the opening range size:
T1 = 100% of range added/subtracted from OR high/low.
T2 = 200% of range added/subtracted from OR high/low.
Clear breakout signals (BUY / SELL labels) when price crosses the OR High or Low.
Custom alerts for both buy and sell triggers.
Designed to work on any intraday timeframe (1min, 3min, 5min, etc.).
📊 How it works:
From 09:15 to 09:30, the script records the highest and lowest prices.
At 09:30, the range is locked in and breakout targets are calculated automatically.
Buy and Sell signals are generated when price breaks above the OR High or below the OR Low.
Targets and range lines automatically reset for the next day.
⚠️ Notes:
This script is tuned for NSE market timings but can be adapted for other markets by changing the session input.
Works best on intraday charts for active traders.
This is not financial advice — always backtest before trading live.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.