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)
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarlo liberamente e senza alcuna limitazione – per saperne di più clicca qui.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarlo liberamente e senza alcuna limitazione – per saperne di più clicca qui.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.