OPEN-SOURCE SCRIPT
ORB Retest Pro v3 + Smart Zones

ORB Retest Pro v3 + Smart Zones is a customizable Opening Range Breakout indicator built for traders who want clean ORB structure, retest-based entries, and real-time smart money confluence on the chart.
The indicator maps the Opening Range High, Low, Mid, and ORB box, then waits for price to break the range and retest it before printing a signal. This helps filter out weaker breakout candles and focuses on more structured continuation setups.
In addition to ORB logic, the script detects and displays real-time Fair Value Gaps (FVGs), Inversion Fair Value Gaps (IFVGs), Order Blocks (OBs), and Breaker Blocks using customizable zone boxes. Zones can be shown or hidden individually, colors can be fully customized, and broken zones can automatically remove themselves from the chart to keep the layout clean.
A key feature of this indicator is its smart zone behavior. When enabled, broken FVGs can automatically convert into IFVGs, allowing the chart to reflect changing market structure instead of leaving outdated zones on screen. You can also keep zones from previous sessions visible and control the number of days to look back, making it useful for both intraday and multi-session analysis.
The indicator is designed to work well on futures and stocks, with adjustable session times, timezone settings, and an optional timeframe filter so the ORB can be tailored to different markets and trading styles.
Features
Custom Opening Range session
Adjustable timezone
ORB high, low, mid, and box
Break + retest signal logic
Optional reclaim / rejection close confirmation
ATR displacement filter
Minimum breakout distance in ticks
Retest must occur within a user-defined number of bars
One signal per side per day or one total signal per day
Real-time FVG, IFVG, OB, and Breaker detection
Fully customizable zone colors and visibility
Optional automatic removal of broken zones
Optional FVG to IFVG conversion
Ability to keep previous-day zones on the chart
Adjustable lookback period
Confluence-based signal coloring
Built-in alerts
Best use
This indicator is best used on intraday charts such as 1m, 3m, 5m, and 15m, especially for traders who want to combine Opening Range Breakout structure with smart money zone confluence.
Notes
FVG, IFVG, Order Block, and Breaker logic are rule-based and designed for consistent automation inside Pine Script. They may not match every discretionary interpretation exactly, but they provide a structured and practical framework for real-time chart analysis.
The indicator maps the Opening Range High, Low, Mid, and ORB box, then waits for price to break the range and retest it before printing a signal. This helps filter out weaker breakout candles and focuses on more structured continuation setups.
In addition to ORB logic, the script detects and displays real-time Fair Value Gaps (FVGs), Inversion Fair Value Gaps (IFVGs), Order Blocks (OBs), and Breaker Blocks using customizable zone boxes. Zones can be shown or hidden individually, colors can be fully customized, and broken zones can automatically remove themselves from the chart to keep the layout clean.
A key feature of this indicator is its smart zone behavior. When enabled, broken FVGs can automatically convert into IFVGs, allowing the chart to reflect changing market structure instead of leaving outdated zones on screen. You can also keep zones from previous sessions visible and control the number of days to look back, making it useful for both intraday and multi-session analysis.
The indicator is designed to work well on futures and stocks, with adjustable session times, timezone settings, and an optional timeframe filter so the ORB can be tailored to different markets and trading styles.
Features
Custom Opening Range session
Adjustable timezone
ORB high, low, mid, and box
Break + retest signal logic
Optional reclaim / rejection close confirmation
ATR displacement filter
Minimum breakout distance in ticks
Retest must occur within a user-defined number of bars
One signal per side per day or one total signal per day
Real-time FVG, IFVG, OB, and Breaker detection
Fully customizable zone colors and visibility
Optional automatic removal of broken zones
Optional FVG to IFVG conversion
Ability to keep previous-day zones on the chart
Adjustable lookback period
Confluence-based signal coloring
Built-in alerts
Best use
This indicator is best used on intraday charts such as 1m, 3m, 5m, and 15m, especially for traders who want to combine Opening Range Breakout structure with smart money zone confluence.
Notes
FVG, IFVG, Order Block, and Breaker logic are rule-based and designed for consistent automation inside Pine Script. They may not match every discretionary interpretation exactly, but they provide a structured and practical framework for real-time chart analysis.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.