OPEN-SOURCE SCRIPT
QuantCrawler ORB Break & Retest 15m - Opening Range Strategy

This indicator automates the 15-minute Opening Range Breakout and Retest strategy. It captures the high, low, and midpoint of the first 15-minute candle, then monitors for confirmed breakouts followed by midpoint retests to generate entry signals.
HOW IT WORKS
1. Captures the high, low, and midpoint of the first 15-minute candle (default 8:00-8:15 premarket)
2. Waits for price to close beyond the OR high or low by your specified breakout distance
3. After breakout confirmation, monitors for price to pull back and touch the midpoint
4. Signals LONG after bullish breakout + midpoint retest
5. Signals SHORT after bearish breakout + midpoint retest
6. Resets after each signal allowing multiple setups per session
WHY 15-MINUTE ORB
The 15-minute Opening Range captures more price action than a 5-minute OR, often providing stronger support/resistance levels. The 8:00 AM default captures premarket activity before the 9:30 open, giving you levels established before the crowd arrives.
WHY BREAKOUT + RETEST
Entering on the initial breakout often results in chop and false signals. This indicator requires confirmation - price must first prove direction by closing beyond the breakout distance, then offer a pullback entry at the midpoint. This filters out many failed breakouts.
SETTINGS
- Breakout Distance - Points beyond OR zone required to confirm breakout
- Timezone - Select your market timezone
- Opening Range Time - Customizable (default 8:00-8:15)
- Session End Time - When to stop monitoring (default 4:00 PM)
VISUAL OUTPUT
- Green line - OR High
- Red line - OR Low
- Orange dotted line - OR Midpoint
- Status box displays current state (Watching, Active, Closed)
ALERTS
Built-in alerts for Long Entry, Short Entry, or Any Entry.
Works on any timeframe chart. The indicator pulls 15-minute data automatically using request.security().
HOW IT WORKS
1. Captures the high, low, and midpoint of the first 15-minute candle (default 8:00-8:15 premarket)
2. Waits for price to close beyond the OR high or low by your specified breakout distance
3. After breakout confirmation, monitors for price to pull back and touch the midpoint
4. Signals LONG after bullish breakout + midpoint retest
5. Signals SHORT after bearish breakout + midpoint retest
6. Resets after each signal allowing multiple setups per session
WHY 15-MINUTE ORB
The 15-minute Opening Range captures more price action than a 5-minute OR, often providing stronger support/resistance levels. The 8:00 AM default captures premarket activity before the 9:30 open, giving you levels established before the crowd arrives.
WHY BREAKOUT + RETEST
Entering on the initial breakout often results in chop and false signals. This indicator requires confirmation - price must first prove direction by closing beyond the breakout distance, then offer a pullback entry at the midpoint. This filters out many failed breakouts.
SETTINGS
- Breakout Distance - Points beyond OR zone required to confirm breakout
- Timezone - Select your market timezone
- Opening Range Time - Customizable (default 8:00-8:15)
- Session End Time - When to stop monitoring (default 4:00 PM)
VISUAL OUTPUT
- Green line - OR High
- Red line - OR Low
- Orange dotted line - OR Midpoint
- Status box displays current state (Watching, Active, Closed)
ALERTS
Built-in alerts for Long Entry, Short Entry, or Any Entry.
Works on any timeframe chart. The indicator pulls 15-minute data automatically using request.security().
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
🔗 QuantCrawler - Join 3,000+ traders: quantcrawler.com
📺 YouTube: Automate With Aaron
💬 Discord: discord.gg/7SbvkwdEtF
📺 YouTube: Automate With Aaron
💬 Discord: discord.gg/7SbvkwdEtF
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
🔗 QuantCrawler - Join 3,000+ traders: quantcrawler.com
📺 YouTube: Automate With Aaron
💬 Discord: discord.gg/7SbvkwdEtF
📺 YouTube: Automate With Aaron
💬 Discord: discord.gg/7SbvkwdEtF
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.