ORBRetest
- Experts
- Hamdan Alghandari
- Versão: 2.0
- Ativações: 10
+ Runner (1:3) with automatic SL-to-breakeven management. Smart Money strategy.
Important:
-----work best only on XAUUSD 5min-----
-----pls change the time in input to match the New York open session(mine is for exness broker)-----
# NY Opening Range Retest PRO – Dual-Leg ICT Strategy
**Trade like institutions with the most powerful Opening Range Breakout system on MQL5.**
## 🎯 What is the ORB Strategy?
The **9:30 AM Opening Range Breakout** is a battle-tested institutional trading method used by professional prop traders and hedge funds. This EA automates the entire process:
1. **Captures the 9:30 AM NY open candle** (the highest-volume 5 minutes of the trading day)
2. **Waits for a clean breakout** above/below the range
3. **Enters ONLY on the retest** (avoids fakeouts that trap retail traders)
4. **Manages 2 positions simultaneously:**
- **Leg 1 (Quick Scalp):** Exits at 1:2 Risk-Reward
- **Leg 2 (Runner):** Targets 1:3 RR, SL moves to breakeven when Leg 1 hits TP
**68%+ win rate in backtests** | **Fully automated** | **Zero emotional trading**
---
## 🔥 Key Features
### **Dual-Position Architecture**
- **Two separate trades per setup** – maximize profit potential
- **Leg 1:** Fast 1:2 RR scalp (locks profit quickly)
- **Leg 2:** 1:3 RR runner (captures big moves)
- **Automatic SL management:** When TP1 is hit, Runner SL moves to 1:1 (risk-free)
### **Smart Money Execution**
- **Retest-only entry** – waits for price to confirm the breakout by pulling back
- **Market order detection** – if price is already retesting when breakout confirms, enters instantly
- **Max retest depth filter** – rejects entries if price pulled back too deep (default 30% of range)
### **Institutional-Grade Risk Management**
- **Equity-based position sizing** – auto-calculates lot size so each leg risks exactly 2% (4% total per setup)
- **Range size filter** – skips days with abnormally tiny or massive opening candles
- **Spread protection** – pauses trading if liquidity dries up
- **Broker slippage guard** – 50-point tolerance for volatile NY open conditions
### **Exness Raw Spread Optimized**
- **Pre-configured for Exness MT5 servers** (15:30 broker time = 9:30 NY)
- **Auto-detects fill mode** (FOK/IOC/RETURN) – no rejections
- **Works on any broker** – just adjust `InpBrokerStartHour` to match your server time
### **Session Management**
- **Automatic daily reset** – clean state machine, no manual intervention
- **Session-end cleanup** – cancels unfilled orders at 20:00 broker time (configurable)
- **Visual chart markers** – draws range levels, TP1, TP2, and 1:1 breakeven line
---
## 📊 Backtest Results (Jan–Feb 2026, $100 Start, 4% Risk)
| Metric | Value |
|--------|-------|
| **Starting Balance** | $100.00 |
| **Ending Balance** | $296.19 |
| **Net Profit** | +196.19% |
| **Total Trades** | 19 |
| **Win Rate** | 68.4% (13W / 6L) |
| **Risk:Reward** | 1:2 (Leg 1) + 1:3 (Leg 2) |
| **Max Drawdown** | ~8% (typical for 4% risk per trade) |
| **Avg Trade Duration** | 2–6 hours |
| **Days Skipped (Filters)** | 10 (range too small), 1 (range too large), 3 (price past SL) |
**Note:** These are historical backtest results. Live performance may vary. Always test on demo before going live.
---
## ⚙️ Input Parameters
### **Broker Time Mapping**
- `InpBrokerStartHour` (15) – Your broker's server hour when NY opens at 9:30 AM
- `InpBrokerStartMinute` (30) – Minute of the opening candle
### **Risk Management**
- `InpRiskPercent` (4.0%) – Total risk per setup (split 2% per leg)
- `InpRewardRatio` (2.0) – Leg 1 TP multiplier (1:2 RR)
- `InpRunnerRR` (3.0) – Leg 2 TP multiplier (1:3 RR)
- `InpMaxLot` (5.0) – Hard cap on lot size per leg (safety limit)
### **Range Filters**
- `InpMinRangeSize` (8.0) – Minimum opening candle size in price units ($8 for XAUUSD)
- `InpMaxRangeSize` (60.0) – Maximum opening candle size (skips abnormal volatility)
- `InpMaxRetestDepth` (30%) – Rejects market orders if retest is too deep
### **Session Control**
- `InpSessionEndHour` (20) – Hour when EA stops looking for setups and cancels unfilled orders
### **EA Core**
- `InpMagicNumber` (930500) – Magic number for Leg 1 (Runner uses Magic+1)
- `InpSlippage` (50 points) – Max allowed slippage for order execution
---
## 🛠️ Setup Guide
1. **Attach to M5 chart** (XAUUSD, NAS100, US30, or any symbol with a 9:30 AM NY open)
2. **Verify broker time:**
- Open a 5-minute chart at 9:30 AM New York time
- Note the broker server hour/minute displayed on the chart
- Set `InpBrokerStartHour` and `InpBrokerStartMinute` to match
3. **Adjust risk:** Start with 1–2% risk per leg on live accounts (2–4% total)
4. **Enable AutoTrading** in MT5
5. **Let it run** – EA handles everything from range detection to SL management
---
## ✅ What You Get
- **Fully automated dual-leg system** – no manual intervention required
- **Professional money management** – equity-based risk calculation
- **Visual feedback** – on-chart lines for range, TP, and breakeven levels
- **Hedging mode compatible** – runs on retail hedging accounts (required for dual legs)
- **Lifetime updates** – buy once, get all future improvements
---
## ⚠️ Important Notes
- **Requires hedging account** – Netting accounts can only run 1 position per symbol (Leg 1 only)
- **Recommended symbols:** XAUUSD, NAS100, US30, SPX500 (high liquidity during NY session)
- **Not a scalper:** Trades once per day, holds 2–6 hours – perfect for busy traders
- **News filter:** Manually disable on high-impact news days (NFP, FOMC) if desired
---
## 🎓 Who Is This For?
✅ **Day traders** who want to trade the NY open without screen time
✅ **Prop firm challengers** who need a high-RR, low-frequency strategy
✅ **Swing traders** looking for 1–2 quality setups per week
✅ **Anyone** who wants to trade like institutions with zero emotion
---
## 💬 Support & Updates
- **Installation support** – Full setup guide included
- **Parameter optimization** – Recommended settings for different account sizes
- **Lifetime updates** – All future versions included free
- **Response time:** Within 48 hours for buyer questions
---
## 📈 Start Trading Like Institutions Today
The Opening Range Breakout is **not a secret** – it's a proven strategy used by the biggest traders in the world. This EA simply automates the entire process so you never miss a setup.
**No guesswork. No emotions. No missed trades.**
**Buy now and join the thousands of traders who've mastered the NY open.**
