OPEN-SOURCE SCRIPT

Opening Range Breakout Session Strategy [JOAT]

701
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

כתב ויתור

המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.