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.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.