PROTECTED SOURCE SCRIPT
NY ORB Breakout Strategy (MambaFX x DoyleStyle)

# NY ORB Breakout Strategy (MambaFX x DoyleExchange)
This is a Pine Script v6 trading strategy developed to capture breakouts of the New York Open Range (9:30 AM EST). It combines concepts from MambaFX and DoyleExchange with modern risk and confirmation logic.
---
## 📌 Overview
* **Platform**: TradingView
* **Script Type**: Strategy
* **Timeframe**: 5-minute (for execution), uses 15-minute Open Range
* **Market**: Forex or Futures
---
## 🧠 Strategy Logic
### 1. **Open Range Setup**
* Open Range defined from **9:30 AM to 9:45 AM EST** (15 mins)
* Strategy waits for a **clear break** above the ORB high or below the ORB low
### 2. **Breakout Conditions**
* Full candle (open & close) must be outside the range
* Optional **retest confirmation** toggle (price revisits range before entry)
### 3. **EMA Filter** *(optional)*
* Longs: Price above 200 EMA, 13 EMA > 50 EMA
* Shorts: Price below 200 EMA, 13 EMA < 50 EMA
### 4. **Trade Execution**
* Entries: Market orders after confirmation
* Exit: TP and SL calculated using Risk\:Reward inputs
* Default TP: 2R
* Default SL: 1R
### 5. **Session Filter**
* Trades only between **9:45 AM and 12:00 PM EST** (New York morning session)
---
## 🛠 Inputs
| Input | Description |
| ------------------- | ------------------------------------ |
| ORB Start Time | Start of range (default 9:30 AM) |
| ORB Duration | Minutes (default 15 mins) |
| EMA Filter | Directional bias (on/off) |
| Retest Confirmation | Require retest before entry (on/off) |
| Take Profit RR | Take profit multiplier (default 2.0) |
| Stop Loss RR | Stop loss multiplier (default 1.0) |
| Show Labels | Toggle label display for breakouts |
---
## ✅ How to Use
1. Open TradingView → Chart
2. Go to **Pine Editor** (bottom panel)
3. Paste the full Pine Script
4. Click **Add to Chart**
5. Enable **Strategy Tester** to see results
---
## 📈 Recommended Chart Setup
* Use 5-minute chart
* Mark support/resistance from 15-minute or 1-hour levels
* Confirm bias with 4H chart direction
---
## 🔔 Alerts
* Bullish breakout alert
* Bearish breakout alert
---
## 📂 File Organization (Optional Dev Style)
```
/ny-orb-breakout-strategy
├── NY_ORB_Breakout_Strategy.pine
└── README.md
```
---
## 📅 Last Updated
**July 28, 2025**
---
## 🤝 Credits
Inspired by:
* **MambaFX** (Breakout philosophy)
* **DoyleExchange** (Clean structure and retest validation)
This is a Pine Script v6 trading strategy developed to capture breakouts of the New York Open Range (9:30 AM EST). It combines concepts from MambaFX and DoyleExchange with modern risk and confirmation logic.
---
## 📌 Overview
* **Platform**: TradingView
* **Script Type**: Strategy
* **Timeframe**: 5-minute (for execution), uses 15-minute Open Range
* **Market**: Forex or Futures
---
## 🧠 Strategy Logic
### 1. **Open Range Setup**
* Open Range defined from **9:30 AM to 9:45 AM EST** (15 mins)
* Strategy waits for a **clear break** above the ORB high or below the ORB low
### 2. **Breakout Conditions**
* Full candle (open & close) must be outside the range
* Optional **retest confirmation** toggle (price revisits range before entry)
### 3. **EMA Filter** *(optional)*
* Longs: Price above 200 EMA, 13 EMA > 50 EMA
* Shorts: Price below 200 EMA, 13 EMA < 50 EMA
### 4. **Trade Execution**
* Entries: Market orders after confirmation
* Exit: TP and SL calculated using Risk\:Reward inputs
* Default TP: 2R
* Default SL: 1R
### 5. **Session Filter**
* Trades only between **9:45 AM and 12:00 PM EST** (New York morning session)
---
## 🛠 Inputs
| Input | Description |
| ------------------- | ------------------------------------ |
| ORB Start Time | Start of range (default 9:30 AM) |
| ORB Duration | Minutes (default 15 mins) |
| EMA Filter | Directional bias (on/off) |
| Retest Confirmation | Require retest before entry (on/off) |
| Take Profit RR | Take profit multiplier (default 2.0) |
| Stop Loss RR | Stop loss multiplier (default 1.0) |
| Show Labels | Toggle label display for breakouts |
---
## ✅ How to Use
1. Open TradingView → Chart
2. Go to **Pine Editor** (bottom panel)
3. Paste the full Pine Script
4. Click **Add to Chart**
5. Enable **Strategy Tester** to see results
---
## 📈 Recommended Chart Setup
* Use 5-minute chart
* Mark support/resistance from 15-minute or 1-hour levels
* Confirm bias with 4H chart direction
---
## 🔔 Alerts
* Bullish breakout alert
* Bearish breakout alert
---
## 📂 File Organization (Optional Dev Style)
```
/ny-orb-breakout-strategy
├── NY_ORB_Breakout_Strategy.pine
└── README.md
```
---
## 📅 Last Updated
**July 28, 2025**
---
## 🤝 Credits
Inspired by:
* **MambaFX** (Breakout philosophy)
* **DoyleExchange** (Clean structure and retest validation)
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.