Session Opening Range Breakout (ORBO)This strategy automates a classic Opening Range Breakout (ORBO) approach: it builds a price range for the first minutes after the market opens, then looks for strong breakouts above or below that range to catch early directional moves.
Concept
The idea behind ORBO is simple:
The first minutes after the session open are often highly informative.
Price forms an “opening range” that acts as a mini support/resistance zone.
A clean breakout beyond this zone can lead to high-momentum moves.
This script turns that logic into a fully backtestable strategy in TradingView.
How the strategy works
Opening Range Session
Default session: 09:30–09:50 (exchange time)
During this window, the script tracks:
orHigh → highest high within the session
orLow → lowest low within the session
This forms your Opening Range for the day.
Breakout Logic (after the window ends)
Once the defined session ends:
Long Entry:
If the close crosses above the Opening Range High (orHigh),
→ strategy.entry("OR Long", strategy.long) is triggered.
Short Entry:
If the close crosses below the Opening Range Low (orLow),
→ strategy.entry("OR Short", strategy.short) is triggered.
Only one opening range per day is considered, which keeps the logic clean and easy to interpret.
Daily Reset
At the start of a new trading day, the script resets:
orHigh := na
orLow := na
A fresh Opening Range is then built using the next session’s 09:30–09:50 candles.
This ensures entries are always based on today’s structure, not yesterday’s.
Visuals & Inputs
Inputs:
Opening range session → default: "0930-0950"
Show OR levels → toggle visibility of OR High / Low lines
Fill range body → optional shaded zone between OR High and OR Low
Chart visuals:
A green line marks the Opening Range High.
A red line marks the Opening Range Low.
Optional yellow fill highlights the entire OR zone.
Background shading during the session shows when the range is currently being built.
These visuals make it easy to see:
Where the OR sits relative to current price
How clean / noisy the breakout was
How often price respects or rejects the opening zone
Backtesting & Optimization
Because this is written as a strategy():
You can use TradingView’s Strategy Tester to view:
Win rate
Net profit
Drawdown
Profit factor
Equity curve
Ideas to experiment with:
Change the session window (e.g., 09:15–09:45, 10:00–10:30)
Apply to different:
Markets: indices, FX, crypto, stocks
Timeframes: 1m / 5m / 15m
Add your own:
Stop Loss & Take Profit levels
Time filters (only trade certain days / times)
Volatility filters (e.g., ATR, range size thresholds)
Higher-timeframe trend filter (e.g., only take longs above 200 EMA)
Session-trading
TLC sessionA Professional Intraday Session Tracker with VWAP and Economic Event Integration
Description
This indicator provides visual tracking of major trading sessions (Asian, London, New York) combined with VWAP calculations and macroeconomic event zones. It's designed for intraday traders who need to monitor session overlaps, liquidity periods, and high-impact news events.
The basic script of trading sessions was taken as a basis and refined for greater convenience.
Key Features:
Customizable Session Tracking: Visualize up to 3 trading sessions with adjustable time zones (supports IANA & GMT formats)
Dynamic VWAP Integration: Built-in Volume-Weighted Average Price calculation
Macro Event Zones: Highlights key economic announcement windows (adjustable for summer/winter time)
Price Action Visualization: Displays open/close prices, session ranges, and average price levels
Automatic DST Adjustment: Uses IANA timezone database for daylight savings awareness
How It Works
1. Trading Session Detection
Three fully configurable sessions (e.g., Asia, London, New York)
Each session displays:
Colored background zone
Opening price (dashed line)
Closing price (dashed line)
Average price (dotted line)
Optional label with session name
2. VWAP Calculation
Standard Volume-Weighted Average Price plotted as circled line
Helps identify fair value within each session
3. Macro Event Zones
Special highlighted period for economic news releases
Automatically adjusts for summer/winter time
Default set to 1000-1200 (summer) or 0900-1100 (winter) GMT-5 (US session open)
Why This Indicator is Unique
Multi-Session Awareness
Unlike simple session indicators, this tool:
Tracks price development within each session
Shows session overlaps (critical for volatility periods)
Maintains separate VWAP calculations across sessions
Professional-Grade Features
IANA timezone support (automatic DST handling)
Customizable visual elements (toggle labels, ranges, averages)
Object-based architecture (clean, efficient rendering)
News event integration (helps avoid trading during high-impact releases)
Usage Recommendations
Best Timeframes
1-minute to 1-hour charts (intraday focus)
Not recommended for daily+ timeframes
Trading Applications
1. Session Breakout Strategy: Trade breakouts when London/New York sessions open
2. VWAP Reversion: Fade moves that deviate too far from VWAP
3. News Avoidance: Reduce position sizing during macro event windows
Visual Example
Asian session (red)
London session (blue)
New York session (purple)
Macro event zone (white)
VWAP line (gold circles)
The basic script of trading sessions was taken as a basis and refined for greater convenience.

