OPEN-SOURCE SCRIPT
Updated

ORB-HL

1 518
1. Opening Range Detection

Automatically calculates the high and low of the first 15 minutes after the selected session opens.

Supported sessions:

New York (Futures): 08:30–08:45 EST
New York (Equities): 09:30–09:45 EST
London: 03:00–03:15 GMT
Asia: 19:00–19:15 JST

Plots ORB high/low lines for the rest of the day.

2. Breakout Signals

Highlights the first valid breakout above or below the ORB range on the:
5-minute timeframe
15-minute timeframe
Green arrows = breakout up (long)
Red arrows = breakout down (short)

3. 1-Minute Projection

When a breakout is confirmed on a higher timeframe (5m or 15m), a projection label (e.g., "5m", "15m") appears on the 1-minute chart.

Purple label = 5m breakout
Teal label = 15m breakout
Helps you confirm momentum in real time while on the 1-minute chart.

4. Trailing Stop System

Uses ATR to create an adaptive trailing stop after breakout.
Turns green when price is above stop (bullish), red when below (bearish).
Optional Buy / Sell signal labels appear on crossover events.

5. Session High/Low Visualization

Tracks and displays the previous session’s High and Low for:
Tokyo
London
New York

Lines extend into the current session to act as S/R reference.

Labels like "NY High", "Asia Low" are placed at the end of each line.

6. Alerts

Built-in alerts for:
First 5m or 15m breakout (long/short)
Trailing stop Buy/Sell crossover

7. Customization Options

Turn session H/L lines on/off per session
Customize projection visibility
Adjust ATR period and sensitivity

Set how far each session line extends using bar offsets

Release Notes
Fixing the max 500 length
Release Notes
Adding ICT
Release Notes
Updating time DST BS,
Release Notes
Fixing Time Issue with Sessions.
Release Notes
Update Time Mismatch
Release Notes
Removing ICT concept to make script more smooth
Release Notes
Updating time to just use Exchange Time to avoid issues with different users across the globe.
Release Notes
Time must be in exchange

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.