OPEN-SOURCE SCRIPT

Range Commander ORB [JOAT]

6 168
An Opening Range Breakout command center: captures the opening range, projects measured-move targets, and tracks the breakout live.


◆ WHAT IT IS

The opening range — the high and low of the first minutes of a session — is one of the most-watched intraday reference structures. Range Commander captures it automatically, locks it into a clean box, and builds a full breakout and target framework around it. It is a context and structure tool: it maps the range, marks the breaks, and tracks the targets — it does not fire endless buy/sell arrows.

This is 100% original code, written from scratch. It does not reuse any other author's ORB script.

snapshot

◆ HOW IT WORKS

1. Range capture. During your chosen session window (default 09:30–09:45 New York, fully adjustable with a timezone selector), the indicator records the running high and low into a live box.

2. Lock and project. When the window closes, the range locks. Its height becomes 1R, and the tool projects measured-move target rails at ±0.5R, ±1R and ±1.5R (all configurable), plus the range midline.

3. Breakout logic. A breakout is registered on either a close beyond the range (cleaner) or a wick beyond the range (faster) — your choice. An option stamps only the first break per side per day to keep the chart immaculate. A minimum range-size filter (in ATR) lets you skip dead, low-range opens.

4. Retests and targets. After a break, the first return to the broken edge is marked with a subtle diamond, and each measured-move target is tracked as hit or unhit in the dashboard.



◆ WHAT YOU SEE

• A precision opening-range box with high/low rails and optional midline
• Measured-move target rails at ±0.5R / ±1R / ±1.5R
• Minimal breakout stamps and retest diamonds — no arrow spam
• A resizable command dashboard with breakout status, OR high/low with intact-or-broken state, range height, range-versus-ATR quality (tight / normal / wide), which targets have printed, and retest status



◆ HOW TO USE IT

• Set the session window to match your instrument and desired ORB length (e.g. 0930-1000 for a 30-minute range).
• A wide range vs. ATR often signals a more energetic session; a tight range warns breakouts may be prone to failure.
• Use the ±R target rails as objective, pre-defined profit references and the opposite range edge as a natural invalidation.
• Designed for intraday timeframes. On daily and higher charts the session concept does not apply, and the dashboard will say so.



◆ NOTES & LIMITATIONS

Use on standard candlestick charts and intraday timeframes. Opening-range breakouts fail as well as follow through — the tool maps structure and targets, it is not financial advice and cannot guarantee a break will run. Combine it with your own analysis and risk management.

— made with passion by officialjackofalltrade

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.