PIPSTA - ORB

This is a sophisticated **Opening Range Breakout (ORB)** indicator for TradingView that tracks price movements during the first minutes of a trading session and identifies breakout opportunities.
---
## 🎯 Core Concept: What is ORB?
**Opening Range Breakout** is a trading strategy based on the idea that the first minutes of trading establish key support/resistance levels. When price breaks above (bullish) or below (bearish) these levels with conviction, it often signals a strong directional move for the rest of the session.
---
## 📊 Key Features
### 1. **Multi-Stage ORB Tracking**
The indicator tracks **4 different opening ranges simultaneously**:
- **ORB 5**: First 5 minutes (fastest, most volatile)
- **ORB 15**: First 15 minutes (balanced signals)
- **ORB 30**: First 30 minutes (more reliable)
- **ORB 60**: First 60 minutes (slowest, most confirmed)
Each stage establishes a **High** and **Low** level. The active ORB (usually the largest completed one) is used for breakout detection.
---
### 2. **Breakout Detection System**
**How it works:**
- Monitors when price closes **above ORB High** (bullish breakout) or **below ORB Low** (bearish breakout)
- Requires a **buffer** (default 0.2%) to filter false breakouts
- Tracks **cycles**: Breakout → Retest → Re-breakout sequences
- Shows labels on chart marking breakouts with cycle numbers
**Signal Modes:**
- **First Only**: Shows only the first breakout in each direction per day
- **Track Cycles**: Shows multiple breakouts as price oscillates (up to configurable max cycles)
---
### 3. **Advanced Filtering**
The indicator includes **optional filters** to improve signal quality:
#### **Volume Filter**
- Compares current volume to moving average
- Requires volume ≥ X multiplier (default 1.5×) for breakout confirmation
- **Strong Volume Override**: If volume exceeds threshold (default 2×), bypasses other filters
#### **Trend Filter**
- Multiple methods: VWAP, EMA, SuperTrend, or combinations
- Only shows breakouts **aligned with the trend**
- Prevents counter-trend trades with lower success rates
#### **FVG (Fair Value Gap) Filter**
- Detects price gaps from strong momentum moves
- Requires breakout to occur near a FVG for confirmation
- Shows FVG boxes on chart (optional)
#### **Higher Timeframe (HTF) Bias**
- Checks daily/4H/weekly trend before taking breakouts
- Displays HTF bias in dashboard (✅ Aligned / ⚠️ Counter-Trend)
- Doesn't block signals—just warns you
---
### 4. **Retest & Failed Break Detection**
**Retest Logic:**
- After breakout, if price returns to ORB level → shows "🔁 RETEST" label
- Tracks minimum distance traveled (default 0.5%) to avoid labeling tiny bounces
- Useful for re-entry opportunities
**Failed Breaks:**
- If price breaks out but returns inside range within X bars (default 5) → marks as "⚠️ FAILED BREAK"
- Helps identify weak breakouts quickly
- Adjusts cycle count accordingly
---
### 5. **Risk Management & Position Sizing**
#### **Automatic Target/Stop Calculation**
**Stop Loss Methods:**
1. **Smart Adaptive** (Recommended): Adjusts to volatility automatically
2. **ATR-Based**: Uses Average True Range with multiplier
3. **ORB %**: Fixed percentage beyond ORB level
4. **Swing**: Places at recent swing high/low
5. **% Based**: Simple percentage from entry
**Take Profit Targets:**
- **TP1** (1R): Conservative target, 1:1 risk/reward
- **TP1.5** (1.5R): Intermediate target
- **TP2** (2R): Standard target for most traders ⭐
- **TP3** (3R): Extended target for strong trends
*R = Risk units (1R = distance from entry to stop loss)*
#### **Position Sizing Calculator**
Automatically calculates:
- **Max shares** to buy based on your risk tolerance
- **Position value** in dollars
- **Risk amount** (max loss if SL hit)
- **Risk/Reward ratio** for the trade
**Risk Modes:**
- **$ Amount**: Risk fixed dollar amount per trade (e.g., $150)
- **% of Account**: Risk percentage of total account (e.g., 1% of $25,000 = $250)
**Safety Limits:**
- Max position size % of account (prevents over-leverage)
- Multi-currency support with live exchange rates
---
### 6. **Real-Time Dashboard**
Displays comprehensive trade information:
**Session Status:**
- Market open/closed status
- Session type (Regular/Extended Hours/Pre-Market)
- Current ORB stage and completion status
**ORB Metrics:**
- Range size ($0.50, 2.5% width)
- Volatility meter (🔥🔥🔥 Extreme / 🔥 Medium / ⚪ Low)
- Volume status (if filter enabled)
- Trend direction (if filter enabled)
- HTF bias
**Trade Setup (when breakout occurs):**
- Entry price
- Stop Loss ($ and %)
- Target prices (TP1, TP1.5, TP2, TP3) with percentages
- Risk/Reward ratio
- Position size (shares and $ value)
- Risk amount
**Session Statistics:**
- Wins/Losses count
- Win rate %
- Total R earned
- Best/Worst trade
---
### 7. **Visual Elements**
**On Chart:**
- **Colored bands** showing active ORB levels (High/Low/Mid)
- **Breakout labels** (🔼 BREAKOUT UP, 🔽 BREAKOUT DOWN)
- **Retest labels** (🔁 RETEST UP/DOWN)
- **Failed break labels** (⚠️ FAILED BREAK)
- **TP/SL lines** extending from entry point
- **Edge labels** showing which ORB stage is active
- **FVG boxes** (if enabled)
**Customizable:**
- Colors for each ORB stage
- Label sizes (Tiny/Small/Normal/Large/Huge)
- Label format (Simple vs Detailed)
- Background transparency
- Line styles
---
## ⚙️ Session Management
**Session Modes:**
- **Auto-Detect**: Uses symbol's native exchange hours (recommended)
- **New York**: NYSE/NASDAQ (09:30-16:00 EST)
- **London**: LSE (08:00-16:30 GMT)
- **Tokyo**: TSE (09:00-15:00 JST)
- **Sydney**: ASX (10:00-16:00 AEST)
- **Frankfurt**: XETRA (09:00-17:30 CET)
- **Custom**: Define your own hours
**Extended Hours Support:**
- Include pre-market (04:00-09:30) and after-hours (16:00-20:00)
- ORB tracking works during extended hours
- Dashboard shows appropriate status
---
## 🎵 Workflow Example
1. **Market opens at 09:30**
2. **First 5 minutes**: ORB5 builds (tracks High/Low)
3. **At 09:35**: ORB5 completes → becomes active
4. **At 09:45**: ORB15 completes → becomes active (takes priority)
5. **Price action**: Close above ORB15 High + buffer → **BREAKOUT UP**
6. **Indicator displays**:
- 🔼 BREAKOUT UP label on chart
- Entry line at ORB High
- TP1/TP2/TP3 lines calculated
- SL line below entry
- Dashboard shows trade parameters
- Position size calculated
7. **Price returns to ORB**: Shows 🔁 RETEST label
8. **If TP2 hit**: Lines freeze, dashboard updates, session stats increment
---
## ⚠️ Important Notes
### **Limitations:**
- May produce false signals in choppy/ranging markets
- Best on **5-minute charts** during **regular trading hours**
- Requires **liquid stocks** (>1M daily volume)
- Not suitable for all market conditions
### **Best Practices:**
- **Paper trade first** to understand signals
- Use proper risk management (1-2% risk per trade)
- Combine with overall market analysis
- Recommended: Track Cycles mode with Volume + Trend filters
### **Timezone Fix:**
If ORB appears 1 hour off:
- Right-click chart → Settings → Symbol → Timezone
- Set to exchange timezone (e.g., America/New_York for NYSE)
---
## 🔔 Alert System
Configurable alerts for:
- Breakout UP/DOWN
- Retest UP/DOWN
- Failed breaks
- Stage completion
All alerts include ticker, price, and ORB stage information.
---
## 💡 Credits & Purpose
**Based on:** Mark Fisher's Opening Range Breakout concept
**Enhanced with:** Modern technical analysis techniques
**Purpose:** Educational and informational—not financial advice
**Author:** OrenLuxy
**Disclaimer:** Trading involves substantial risk. Past performance doesn't guarantee future results. Always do your own research.
---
This indicator is a **complete ORB trading system** with institutional-grade risk management, multi-filter confirmation, and comprehensive position sizing—all automated and visualized in real-time. Perfect for day traders who want a systematic approach to opening range breakouts.
Script sur invitation seulement
Seuls les utilisateurs approuvés par l'auteur peuvent accéder à ce script. Vous devrez demander et obtenir l'autorisation pour l'utiliser. Celle-ci est généralement accordée après paiement. Pour plus de détails, suivez les instructions de l'auteur ci-dessous ou contactez directement PIPSTA_APP.
TradingView ne recommande PAS d'acheter ou d'utiliser un script à moins que vous ne fassiez entièrement confiance à son auteur et que vous compreniez son fonctionnement. Vous pouvez également trouver des alternatives gratuites et open source dans nos scripts communautaires.
Instructions de l'auteur
Clause de non-responsabilité
Script sur invitation seulement
Seuls les utilisateurs approuvés par l'auteur peuvent accéder à ce script. Vous devrez demander et obtenir l'autorisation pour l'utiliser. Celle-ci est généralement accordée après paiement. Pour plus de détails, suivez les instructions de l'auteur ci-dessous ou contactez directement PIPSTA_APP.
TradingView ne recommande PAS d'acheter ou d'utiliser un script à moins que vous ne fassiez entièrement confiance à son auteur et que vous compreniez son fonctionnement. Vous pouvez également trouver des alternatives gratuites et open source dans nos scripts communautaires.