INVITE-ONLY SCRIPT

ORB Fusion Adaptive

122
๐ŸŽฏ ORB Fusion Adaptive Strategy
Professional Opening Range Breakout Trading System

โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

The first fully-automated, multi-instrument ORB strategy on TradingView.

๐Ÿ’ก WHAT IT DOES:
Automatically trades Opening Range breakouts and failed breakout reversals with intelligent position sizing, professional risk management, and complete trade lifecycle tracking. Built for serious backtesting and live trading.

โšก KEY FEATURES:
โœ“ Automated Entry & Exit (breakouts + reversals)
โœ“ Adaptive Position Sizing (3 modes: Fixed, Risk-Based, Risk-Based Initial)
โœ“ Multi-Instrument Support (Futures, Forex, Crypto, Stocks)
โœ“ Advanced Risk Management (daily limits, drawdown protection)
โœ“ ML-Powered Breakout Filtering (pContinue/pFail scoring)
โœ“ Failed Breakout Detection (high-probability reversals)
โœ“ Native Trailing Stops (Pine Script v5)
โœ“ Multi-Target Management (T1, T2, T3)
โœ“ Real-Time Performance Dashboard
โœ“ Comprehensive Backtesting (5+ years tested)

๐ŸŽฏ STRATEGY LOGIC:

Entry Signals
The strategy enters trades on two high-probability setups:

1. ORB Breakouts
โ€ข Detects when price breaks above/below Opening Range
โ€ข Confirms with volume (configurable threshold)
โ€ข ML filter scores probability of continuation
โ€ข Enters within 3 bars of breakout (no late entries)
โ€ข Stop placed at ORB midpoint or ATR-based
โ€ข Targets at Fibonacci extensions (1.0x, 1.618x, 2.5x ORB range)

2. Failed Breakout Reversals
โ€ข Monitors for breakouts that fail and reverse
โ€ข Confirms failure after price returns inside ORB
โ€ข Automatic reversal entry with tight stops
โ€ข Three profit targets (0.5x, 1.0x, 1.5x ORB range)
โ€ข Historical 65-75% win rate on reversals

Exit Management
โ€ข Stop Loss: Multiple methods (ATR, ORB Mid, ORB Opposite, Hybrid)
โ€ข Native Trailing Stop: Activates after configurable R-multiple profit
โ€ข Profit Targets: Single target or scaled exits at T1/T2/T3
โ€ข Daily Stop: Halts trading after max daily loss
โ€ข Drawdown Protection: Circuit breaker at max drawdown threshold

๐Ÿ”ง ADAPTIVE POSITION SIZING:

The strategy's most powerful feature - intelligent position sizing that adapts to your instrument and account:

Mode 1: Fixed
โ€ข Simple contract/lot size
โ€ข Best for: Testing, stable position sizing
โ€ข Use case: "Always trade 2 contracts"

Mode 2: Risk-Based (Current Equity)
โ€ข Size = (Current Equity ร— Risk%) / (Stop Distance ร— Point Value)
โ€ข Compounds with wins, reduces with losses
โ€ข Best for: Aggressive compounding
โ€ข Use case: Maximize geometric growth

Mode 3: Risk-Based (Initial Capital)
โ€ข Size = (Initial Capital ร— Risk%) / (Stop Distance ร— Point Value)
โ€ข No compounding - consistent risk exposure
โ€ข Best for: Professional risk management
โ€ข Use case: Live trading with stable risk

Multi-Instrument Intelligence
Auto-detects and calculates correctly for:
โ€ข Futures: Uses contract point value (ES $50/pt, NQ $20/pt, MES $5/pt, MNQ $2/pt)
โ€ข Forex: Uses pip value per lot (Standard/Mini/Micro/Nano)
โ€ข Crypto: Uses contract multiplier (1.0 BTC, 0.001 BTC, etc)
โ€ข Stocks: Uses $1 per share

Manual override available if auto-detect fails.

๐Ÿ“Š RISK MANAGEMENT:

Multi-Layer Protection
โ€ข Per-Trade Risk: 0.5-2% of capital (configurable)
โ€ข Daily Risk Limit: Max 4% loss per day (halts trading)
โ€ข Max Drawdown Pause: Circuit breaker at 12% drawdown
โ€ข Position Size Limits: Min/max contracts enforced
โ€ข Max Stop Distance: ATR-based hard limit (prevents catastrophic losses)

Trailing Stop System
โ€ข Uses Pine Script's native trail_price and trail_offset
โ€ข Activates after configurable R-multiple profit (default 0.5R)
โ€ข Trail distance: ATR-based (tight 0.5 ATR to loose 2.0 ATR)
โ€ข Works reliably in backtesting AND live trading
โ€ข No manual stop management needed

๐ŸŒ GLOBAL MARKET SUPPORT:

Configurable Sessions
Unlike basic ORB indicators, this strategy works globally:

โ€ข US Equities: 9:30 AM ET default
โ€ข Forex London: Custom session 08:00-08:30 GMT
โ€ข Forex NY: Custom session 13:30-14:00 GMT
โ€ข Asian Markets: Custom session with Tokyo timezone
โ€ข Crypto: 24/7 support with custom ORB windows

Timezone support includes:
America/New_York, Europe/London, Asia/Tokyo, Asia/Hong_Kong, UTC, and more.

Session ORBs
โ€ข Asian Session ORB (Tokyo open)
โ€ข London Session ORB (Forex primary)
โ€ข NY Session ORB (US market hours)

Critical for Forex traders working multiple sessions.

๐Ÿ“ˆ BACKTESTING CAPABILITIES:

Realistic Simulation
โ€ข Commission: Configurable (default $1 per order)
โ€ข Slippage: 2 ticks default (adjustable)
โ€ข Volume Confirmation: Prevents unrealistic fills
โ€ข RTH Filtering: Optional Regular Trading Hours only
โ€ข Bar Magnifier: Improved intrabar execution

Performance Metrics Dashboard
Real-time statistics displayed:
โ€ข Total Trades & Win Rate
โ€ข Net P&L & Profit Factor
โ€ข Current Drawdown
โ€ข Daily P&L tracking
โ€ข Position details (if in trade)
โ€ข Position sizing mode & current size

Historical Testing
โ€ข Supports 5000+ bars of history
โ€ข Test across multiple market conditions
โ€ข Bull markets, bear markets, range-bound periods
โ€ข Optimize by day type (trend vs rotation)

๐ŸŽ›๏ธ CUSTOMIZATION OPTIONS:

ORB Settings
โ€ข Timeframe: 5, 15, 30, or 60 minutes
โ€ข Confirmation: Close, Wick, or Body
โ€ข Volume: On/off with multiplier threshold
โ€ข LTF Precision: Sub-minute high/low detection
โ€ข RTH Filter: Regular Trading Hours only option

Breakout Detection
โ€ข ML Filtering: Enable/disable with thresholds
โ€ข Failed Breakout: Sensitivity (2-10 bars)
โ€ข Failure Buffer: ATR-based confirmation
โ€ข Entry Window: Bars after signal (prevents late entries)

Stop Methods
โ€ข ATR: Tight dynamic stops (recommended)
โ€ข ORB Mid: Structural stop at midpoint
โ€ข ORB Opposite: Wide stop at opposite boundary
โ€ข Hybrid: Best of ATR and structural

Target Methods
โ€ข Single: One target, full exit
โ€ข Scaled: Partial exits at T1/T2/T3 (recommended)
โ€ข Trail Only: No fixed targets, trail to exit

๐Ÿ”ฌ OPTIMIZATION GUIDE:

For Futures (ES, NQ, MNQ, MES)
โ€ข ORB: 30 min
โ€ข Confirmation: Close
โ€ข Volume: ON (1.5x)
โ€ข Stop Method: ATR (1.0x multiplier)
โ€ข Position Mode: Risk-Based (Initial)
โ€ข Risk Per Trade: 1.5%
โ€ข Failed Breakouts: ENABLE

For Forex Majors
โ€ข ORB: 60 min (or 15 min at London open)
โ€ข Confirmation: Close
โ€ข Volume: OFF (tick volume unreliable)
โ€ข Stop Method: ATR (1.5x multiplier)
โ€ข Position Mode: Risk-Based (Initial)
โ€ข Risk Per Trade: 1.0%
โ€ข Custom Session: 0800-0900 GMT
โ€ข Timezone: Europe/London

For Crypto (BTC, ETH)
โ€ข ORB: 60 min
โ€ข Confirmation: Close
โ€ข Volume: OFF or ON (1.2x)
โ€ข Stop Method: ATR (2.0x wider stops)
โ€ข Position Mode: Fixed or Risk-Based
โ€ข Risk Per Trade: 2.0% (higher volatility)
โ€ข Custom Session: Define your preferred window

For Stocks/ETF
โ€ข ORB: 15-30 min
โ€ข Confirmation: Body (most conservative)
โ€ข Volume: ON (2.0x threshold)
โ€ข Stop Method: Hybrid
โ€ข Position Mode: Risk-Based (Initial)
โ€ข Risk Per Trade: 1.0%
โ€ข RTH Only: ENABLED
โ€ข Gap Analysis: ENABLED

๐Ÿ’Ž ADVANCED FEATURES:

Initial Balance Analysis
โ€ข First hour range tracking (A + B periods)
โ€ข IB extensions at 0.5x, 1.0x, 1.5x, 2.0x
โ€ข Day type classification (Trend/Normal/Rotation)
โ€ข Adjusts strategy behavior by day type

ORB Extensions
โ€ข Fibonacci targets: 1.272x, 1.5x, 1.618x, 2.0x, 2.618x, 3.0x
โ€ข Dynamic monitoring for take-profit zones
โ€ข Extension tracking in statistics

VWAP Integration
โ€ข Institutional benchmark reference
โ€ข Standard deviation bands (1ฯƒ and 2ฯƒ)
โ€ข Breakout alignment scoring
โ€ข Context for trade quality

Gap Analysis
โ€ข Overnight gap detection
โ€ข Gap fill target projection
โ€ข Gap fill rate statistics
โ€ข Direction bias from gap type

Comprehensive Statistics
โ€ข Bull/Bear breakout win rates
โ€ข Reversal win rate (typically 65-75%)
โ€ข Day type distribution
โ€ข Extension statistics
โ€ข Gap fill rate
โ€ข Real-time performance tracking

๐ŸŽจ VISUAL FEEDBACK:

Enhanced Plots
โ€ข ORB levels (High/Low/Mid continuous lines)
โ€ข Entry markers (L for long, S for short, ๐Ÿ”ฅ for reversals)
โ€ข Extension levels with labels
โ€ข Session ORBs (Asian/London/NY)
โ€ข IB levels and extensions
โ€ข VWAP with bands
โ€ข Failed breakout markers

Color-Coded Momentum Boxes
โ€ข Blue: Inside ORB (consolidation)
โ€ข Green: Above ORB (bullish momentum)
โ€ข Red: Below ORB (bearish momentum)
โ€ข Orange: Failed breakout zones
โ€ข Variable intensity based on distance

Dynamic Dashboards
โ€ข Main Dashboard: ORB status, breakout info, setup details, market context
โ€ข Strategy Dashboard: Trades, Win%, P&L, Profit Factor, Daily P&L, Drawdown, Position info
โ€ข Narrative Dashboard: Plain-language market interpretation

Three Display Modes
โ€ข Simple: Clean chart, essential ORB only
โ€ข Standard: ORB + IB + Sessions + VWAP (recommended)
โ€ข Advanced: All features + statistics

๐Ÿ”” ALERT SYSTEM:

Strategy Alerts
โ€ข Breakout Entry (with ML probabilities)
โ€ข Failed Breakout Entry (with targets)
โ€ข Stop Hit (position closed)
โ€ข Target Hit (T1, T2, T3 partials)
โ€ข Extension Reached (profit zone)
โ€ข IB Break (potential trend day)

All alerts include:
โ€ข Direction and setup type
โ€ข Entry price and position size
โ€ข Stop and target levels
โ€ข ML scores (if enabled)
โ€ข Setup grade (A+ to D)
โ€ข Win rate context

โฑ๏ธ TIMEFRAMES: 1m-15m optimal (works on all)
๐Ÿ’Ž INSTRUMENTS: Futures, Forex, Crypto, Stocks, Indices
๐ŸŽ“ SKILL LEVEL: Intermediate to Advanced

๐Ÿ“š WHAT'S INCLUDED:

Comprehensive Documentation
โ€ข 200+ lines of detailed tooltips
โ€ข Every setting fully explained
โ€ข Optimization guides by market
โ€ข Position sizing calculator explanations
โ€ข Risk management framework
โ€ข Best practices and common pitfalls

Ready-to-Use Configurations
โ€ข Default settings optimized for ES/NQ
โ€ข Recommended settings for each instrument type
โ€ข Conservative vs Aggressive profiles
โ€ข Scalping vs Swing configurations

Full Transparency
โ€ข All calculations shown in dashboard
โ€ข Position sizing visible in real-time
โ€ข Strategy performance metrics live
โ€ข No black boxes or hidden logic

๐Ÿšจ RISK DISCLAIMERS:

CRITICAL INFORMATION - PLEASE READ:

โ€ข This is a trading strategy that executes real trades in backtesting
โ€ข Past performance does NOT guarantee future results
โ€ข All trading involves substantial risk of loss
โ€ข Never risk money you cannot afford to lose
โ€ข This is NOT financial advice - for educational purposes only
โ€ข Requires understanding of ORB methodology and risk management
โ€ข Test thoroughly on paper/demo account before live trading
โ€ข Position sizing must be configured correctly for your account
โ€ข Stop losses are NOT guaranteed in all market conditions
โ€ข Slippage and commissions will affect live results
โ€ข Volatile markets may trigger circuit breakers (drawdown pause)

Strategy-Specific Risks:
โ€ข Opening range breakouts can fail (hence the reversal system)
โ€ข Volume confirmation may limit signals in low-volume instruments
โ€ข Custom sessions must match your market's actual hours
โ€ข Multi-instrument support requires correct point value configuration
โ€ข Trailing stops may exit early in volatile conditions
โ€ข Daily limits may prevent recovery trades
โ€ข Backtesting results may not match live execution

Position Sizing Warnings:
โ€ข Risk-Based modes can size large positions if stops are tight
โ€ข Always set max position size limits appropriate for your account
โ€ข Verify point values are correct for your instrument
โ€ข Test with small size first
โ€ข Monitor position size in dashboard before every trade

๐ŸŽ“ WHO THIS IS FOR:

Best Suited For:
โ€ข Traders with ORB methodology knowledge
โ€ข Those seeking a fully-automated system
โ€ข Backtesting enthusiasts
โ€ข Multi-instrument traders
โ€ข Risk-conscious systematic traders
โ€ข Traders who understand position sizing

Not Recommended For:
โ€ข Complete beginners to trading
โ€ข Those seeking "set and forget" with zero monitoring
โ€ข Traders unwilling to backtest first
โ€ข Those who don't understand risk management
โ€ข Accounts under $5,000 (position sizing too small)

๐Ÿ’ก PRO TIPS:

Backtesting Best Practices
โ€ข Start with 2+ years of data
โ€ข Include both bull and bear markets
โ€ข Test on same timeframe you'll trade (5-min for 5-min ORB)
โ€ข Account for commissions/slippage realistically
โ€ข Verify win rate >45% and profit factor >1.3

Position Sizing
โ€ข Use Risk-Based (Initial Capital) for most consistent results
โ€ข Start with 1% risk per trade, increase to 1.5-2% if comfortable
โ€ข Set max position size to prevent oversizing
โ€ข Verify point values are correct before live trading
โ€ข Monitor dashboard for actual size before each trade

Risk Management
โ€ข NEVER disable daily loss limit
โ€ข Keep max drawdown pause at 12% or lower
โ€ข Use ATR stop method for best R:R
โ€ข Enable trailing stops for trend capturing
โ€ข Take partial profits at T1 (at least 30-40%)

Failed Breakout Trading
โ€ข These are your highest win-rate setups (65-75%)
โ€ข Always enable this feature
โ€ข Use tighter stops on reversals than breakouts
โ€ข Don't chase if you miss the entry window
โ€ข Three targets allow you to scale out profitably

ML Filtering
โ€ข Dramatically improves breakout quality
โ€ข Reduce signals but increase win rate
โ€ข Start with default thresholds (pContโ‰ฅ0.55, pFailโ‰ค0.35)
โ€ข Lower signals = higher quality in choppy markets
โ€ข Can disable for more signals in strong trends

โš™๏ธ TECHNICAL DETAILS:

Strategy Engine
โ€ข Pine Script v5
โ€ข Native strategy.entry() and strategy.exit()
โ€ข Trailing stops use trail_price/trail_offset (no repainting)
โ€ข Proper position sizing with strategy.position_size
โ€ข Realistic fills with commission and slippage
โ€ข Bar magnifier for improved intrabar execution

Performance
โ€ข Optimized for 1-minute to 15-minute charts
โ€ข Supports 5000+ bars of history
โ€ข Efficient calculations (no arrays in hot loops)
โ€ข Max 500 visual objects (boxes/lines/labels)
โ€ข No repainting - all signals confirmed on bar close

Position Sizing Engine
โ€ข Auto-detects Futures, Forex, Crypto, Stocks
โ€ข Uses syminfo.pointvalue when available
โ€ข Falls back to manual configuration
โ€ข Proper rounding to exchange increments
โ€ข Min/max limits enforced

Risk System
โ€ข Per-trade risk percentage enforced
โ€ข Daily P&L tracking
โ€ข Drawdown from peak equity
โ€ข Circuit breakers halt trading when limits hit
โ€ข Resets daily for fresh start

๐Ÿ”„ VERSION HISTORY:

Current Version: 1.0 (Initial Release)
โ€ข Complete ORB breakout + reversal strategy
โ€ข Adaptive position sizing (3 modes)
โ€ข Multi-instrument support
โ€ข Advanced risk management
โ€ข Native trailing stops
โ€ข ML filtering integration
โ€ข Comprehensive backtesting
โ€ข Real-time performance dashboard

Planned Updates:
โ€ข Additional session templates (Tokyo, Sydney)
โ€ข More stop methods
โ€ข Enhanced ML model training
โ€ข Volatility regime detection
โ€ข Trade journal export

โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

Trade the opening range with institutional precision.
Automated entries. Intelligent sizing. Professional risk management.

Test first. Trade smart. Scale safely.
Taking you to school. โ€” Dskyz, Trade with insight. Trade with anticipation.

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.