OPEN-SOURCE SCRIPT
ORB 15 Min Pro Max Way

ORB 15-Min Pro — Max Way
Opening Range Breakout tool built around a simple rule set: mark the first 15 minutes of the session (wicks included), then wait for a 15-minute candle close outside that range before calling anything a breakout. Wick pokes don't count.
What it draws
The opening range as a shaded zone extended across the session, with solid high/low lines and a dashed midline. The zone is green when today's range formed above yesterday's, red when below.
Triangle markers on the exact candle where a breakout is confirmed (up = buy, down = sell).
BNR labels when price breaks out, pulls back to the broken level, holds it, and closes back in the breakout direction.
An X-cross when a breakout fails and price closes back inside the range. Failed moves often rotate to the midline or the other side of the range, so these are worth watching as reversal context.
Stepped take-profit levels after each breakout, spaced by a configurable percentage of the range width (default 50%). When one is reached, the next plots. "Adaptive" mode keeps only the nearest levels on screen, "Extended" keeps them all.
A status table with the current bias (above/below midline, inside/outside range), range levels, and the next target in each direction.
Key detail: multi-timeframe confirmation. If your chart is on 1m, 2m, or 5m for execution, the script still waits for the 15-minute bar to close outside the range before signaling. It reads only completed 15m bars, so confirmed signals do not repaint. On a 15m or higher chart it uses the chart's own closes.
Sessions. Defaults to the NYSE open (09:30–09:45 New York time), but the range window is an input — set it to 18:00–18:15 for the Globex open or 03:00–03:15 for London. A separate trading-window input controls how late in the session signals may fire (default: until noon).
Optional filters, all off by default: breakout-candle volume vs. the opening-range average, session VWAP alignment, an EMA trend filter, and a range-quality filter that skips days when the opening range is unusually narrow or wide relative to the 14-day daily ATR. The base configuration is pure price action.
Alerts are included for all six events: buy, sell, both retests, and both failed breakouts.
What this is not. It's an indicator, not a strategy — there is no backtest attached and no performance claim implied. Breakouts fail regularly, especially on range-bound days; the failed-breakout markers exist precisely because of that. Test it on your own symbols and timeframes before trading it, and manage risk accordingly.
Credits. The opening range breakout concept goes back decades (Toby Crabel, Mark Fisher). The midline emphasis, 15-minute close confirmation, and failed-move logic follow the approach Max Options Trading teaches publicly. The zone/target presentation is inspired by LuxAlgo's open-source "Opening Range with Breakouts & Targets." The code itself is original.
Opening Range Breakout tool built around a simple rule set: mark the first 15 minutes of the session (wicks included), then wait for a 15-minute candle close outside that range before calling anything a breakout. Wick pokes don't count.
What it draws
The opening range as a shaded zone extended across the session, with solid high/low lines and a dashed midline. The zone is green when today's range formed above yesterday's, red when below.
Triangle markers on the exact candle where a breakout is confirmed (up = buy, down = sell).
BNR labels when price breaks out, pulls back to the broken level, holds it, and closes back in the breakout direction.
An X-cross when a breakout fails and price closes back inside the range. Failed moves often rotate to the midline or the other side of the range, so these are worth watching as reversal context.
Stepped take-profit levels after each breakout, spaced by a configurable percentage of the range width (default 50%). When one is reached, the next plots. "Adaptive" mode keeps only the nearest levels on screen, "Extended" keeps them all.
A status table with the current bias (above/below midline, inside/outside range), range levels, and the next target in each direction.
Key detail: multi-timeframe confirmation. If your chart is on 1m, 2m, or 5m for execution, the script still waits for the 15-minute bar to close outside the range before signaling. It reads only completed 15m bars, so confirmed signals do not repaint. On a 15m or higher chart it uses the chart's own closes.
Sessions. Defaults to the NYSE open (09:30–09:45 New York time), but the range window is an input — set it to 18:00–18:15 for the Globex open or 03:00–03:15 for London. A separate trading-window input controls how late in the session signals may fire (default: until noon).
Optional filters, all off by default: breakout-candle volume vs. the opening-range average, session VWAP alignment, an EMA trend filter, and a range-quality filter that skips days when the opening range is unusually narrow or wide relative to the 14-day daily ATR. The base configuration is pure price action.
Alerts are included for all six events: buy, sell, both retests, and both failed breakouts.
What this is not. It's an indicator, not a strategy — there is no backtest attached and no performance claim implied. Breakouts fail regularly, especially on range-bound days; the failed-breakout markers exist precisely because of that. Test it on your own symbols and timeframes before trading it, and manage risk accordingly.
Credits. The opening range breakout concept goes back decades (Toby Crabel, Mark Fisher). The midline emphasis, 15-minute close confirmation, and failed-move logic follow the approach Max Options Trading teaches publicly. The zone/target presentation is inspired by LuxAlgo's open-source "Opening Range with Breakouts & Targets." The code itself is original.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.