OPEN-SOURCE SCRIPT
Opening Range Breakout Session Strategy [JOAT]

Opening Range Breakout Session Strategy [JOAT]
Locks the opening range of your session, then trades disciplined, capped breakouts beyond it with fully framed risk.

What it is
The first minutes of a session set the day's battle lines. The opening range — the high and low forged during that early window — is where overnight orders, gap fills and early positioning collide, and price leaving that range tends to keep going. This indicator builds the opening range objectively, trades confirmed breakouts from it, and enforces the discipline that makes the approach workable: a session filter and a hard daily trade cap. It is an original implementation of the widely-used opening-range-breakout concept.
How it works
• Opening range — during a user-defined opening window (09:30–10:00 by default, in your chosen timezone) the tool records the high and low, then locks them as the reference range and draws a clean box with labelled ORH and ORL levels.
• Session and daily reset — signals are only allowed inside a separate trade-session window, and the range clears cleanly on each new day using a real day-change test, so nothing carries over stale.
• Breakout logic — a Buy fires on a confirmed close above the range high plus a small ATR buffer; a Sell on a confirmed close below the range low minus the buffer. The buffer filters marginal pokes through the edge.
• Discipline — a hard cap of N trades per day plus a minimum-bar spacing control prevent the range edges from generating repeated signals as price oscillates around them.
Trade framing
Each signal projects a red risk box and a green reward box. The stop is either the opposite opening-range edge (structure-based, the default) or an ATR distance, and the three targets ladder out in R multiples with labelled entry, stop and take-profit prices. Extension levels at 1R and 2R from the range edges are also projected as context for where a breakout may travel.
The dashboard
An adjustable session ticket shows the current phase (pre-open, opening, session or locked), the range size, the bias relative to the range, a breakout-extension meter, the trades used against the daily cap, the active signal, and a live first-target-before-stop tally from closed bars only.
How to use it
• Set the opening window, trade session and timezone to match your market (index or futures cash open, an FX session, or a crypto day boundary).
• Wait for the range to lock, then take confirmed breakouts; use the opposite edge as your invalidation and the extension levels as context.
• Respect the daily cap — the discipline is part of the method, not an afterthought.
Settings
Opening-range and trade-session windows, timezone, ATR length, stop mode and multiplier, breakout buffer, target R multiples, maximum trades per day, plus full visual and dashboard controls.
Originality and usefulness
Opening-range breakout is a public concept; the contribution here is the complete, disciplined implementation — objective range locking, a strict session and daily-reset model, buffered confirmed-close breakouts, structure-based stops at the opposite edge, and integrated non-repainting trade framing — explained so each control's purpose is clear.
Notes and limitations
• Range-bound sessions produce whipsaws around the edges; the buffer and daily cap reduce but do not remove this.
• Breakouts fail regularly — the opposite-edge stop and R-based targets exist precisely for that reason.
• Session settings must match the instrument, or the range will be measured at the wrong time.
• The win tally reflects only past bars on the current chart and is not a forecast.
• Educational and analytical tool, not financial advice.
— made with passion by officialjackofalltrades
Locks the opening range of your session, then trades disciplined, capped breakouts beyond it with fully framed risk.
What it is
The first minutes of a session set the day's battle lines. The opening range — the high and low forged during that early window — is where overnight orders, gap fills and early positioning collide, and price leaving that range tends to keep going. This indicator builds the opening range objectively, trades confirmed breakouts from it, and enforces the discipline that makes the approach workable: a session filter and a hard daily trade cap. It is an original implementation of the widely-used opening-range-breakout concept.
How it works
• Opening range — during a user-defined opening window (09:30–10:00 by default, in your chosen timezone) the tool records the high and low, then locks them as the reference range and draws a clean box with labelled ORH and ORL levels.
• Session and daily reset — signals are only allowed inside a separate trade-session window, and the range clears cleanly on each new day using a real day-change test, so nothing carries over stale.
• Breakout logic — a Buy fires on a confirmed close above the range high plus a small ATR buffer; a Sell on a confirmed close below the range low minus the buffer. The buffer filters marginal pokes through the edge.
• Discipline — a hard cap of N trades per day plus a minimum-bar spacing control prevent the range edges from generating repeated signals as price oscillates around them.
Trade framing
Each signal projects a red risk box and a green reward box. The stop is either the opposite opening-range edge (structure-based, the default) or an ATR distance, and the three targets ladder out in R multiples with labelled entry, stop and take-profit prices. Extension levels at 1R and 2R from the range edges are also projected as context for where a breakout may travel.
The dashboard
An adjustable session ticket shows the current phase (pre-open, opening, session or locked), the range size, the bias relative to the range, a breakout-extension meter, the trades used against the daily cap, the active signal, and a live first-target-before-stop tally from closed bars only.
How to use it
• Set the opening window, trade session and timezone to match your market (index or futures cash open, an FX session, or a crypto day boundary).
• Wait for the range to lock, then take confirmed breakouts; use the opposite edge as your invalidation and the extension levels as context.
• Respect the daily cap — the discipline is part of the method, not an afterthought.
Settings
Opening-range and trade-session windows, timezone, ATR length, stop mode and multiplier, breakout buffer, target R multiples, maximum trades per day, plus full visual and dashboard controls.
Originality and usefulness
Opening-range breakout is a public concept; the contribution here is the complete, disciplined implementation — objective range locking, a strict session and daily-reset model, buffered confirmed-close breakouts, structure-based stops at the opposite edge, and integrated non-repainting trade framing — explained so each control's purpose is clear.
Notes and limitations
• Range-bound sessions produce whipsaws around the edges; the buffer and daily cap reduce but do not remove this.
• Breakouts fail regularly — the opposite-edge stop and R-based targets exist precisely for that reason.
• Session settings must match the instrument, or the range will be measured at the wrong time.
• The win tally reflects only past bars on the current chart and is not a forecast.
• Educational and analytical tool, not financial advice.
— made with passion by officialjackofalltrades
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
The AI Trading Ecosystem, Built to win trades 📈
Get Full Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
Get Full Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
The AI Trading Ecosystem, Built to win trades 📈
Get Full Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
Get Full Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.