OPEN-SOURCE SCRIPT
NY Open ATR System - Tick Range Filter

### **New York Open ATR System - Brief Overview**
#### **🎯 Core Purpose**
Identifies **high-potential breakout setups** at the New York open (13:30 UTC) by combining:
1. **Volatility filters** (dual ATR periods)
2. **Tick-based range analysis**
3. **Time-specific triggers**
---
### **⚙️ Key Components**
| **Feature** | **Function** |
|---------------------------|-----------------------------------------------------------------------------|
| **ATR Filters** | Dual volatility checks (short + long periods) at 13:25 UTC |
| **Tick Range Limit** | Highlights candles with range < user-defined ticks (default: 150) |
| **Time Precision** | Focuses exclusively on 13:30 UTC weekday candles |
| **Visual Markers** | Yellow highlight + tick count label (e.g., "147/150 ticks") |
| **Info Panel** | Real-time display of settings and current tick count |
---
### **📊 How It Works**
1. **Pre-Open Check (13:25 UTC)**
- Verifies market volatility using 2 ATR values
- Requires both to exceed user-defined thresholds
2. **Open Analysis (13:30 UTC)**
- Measures exact tick count: `(high - low) / instrument_mintick`
- Compares against your max tick limit (adjustable 1-5000)
3. **Visual Trigger**
- Highlights candle yellow if:
```tick_count < your_set_limit```
- Labels show exact performance vs limit (e.g., "142/150 ticks")
---
### **⚡ Trading Signals**
| **Condition** | **Visual Feedback** |
|----------------------------|---------------------------------------------|
| High volatility + tight range | Yellow candle + tick count label |
| All other scenarios | No marking |
---
### **🛠️ Customization**
```pine
// Key Adjustable Parameters:
maxTicks = input.int(150) // Set 1-5000 ticks
atrPeriod1 = input.int(14) // Short ATR (2-5000)
atrPeriod2 = input.int(161) // Long ATR (2-5000)
candleColor = input.color(color.yellow) // Highlight color
```
---
### **💡 Practical Use Cases**
1. **Breakout Anticipation**
- Tight ranges after volatility spikes often precede strong moves
2. **Session Scalping**
- Identify low-range opens for mean-reversion plays
3. **Volatility Filtering**
- Avoid trading when ATR thresholds aren't met
---
### **📈 Suggested Settings**
| **Market** | **Max Ticks** | **ATR Periods** |
|------------------|--------------|----------------|
| Forex (EUR/USD) | 100-200 | 14/161 |
| Stocks (SPY) | 50-120 | 10/200 |
| Crypto (BTC) | 300-500 | 20/100 |
---
### **✅ Benefits**
- **Precision Timing**: Focused on NY open liquidity surge
- **Quantitative Filtering**: Exact tick measurement + volatility thresholds
- **Clean Visuals**: No chart clutter - only marks qualifying candles
- **Adaptable**: Works across all markets and timeframes
This system helps traders spot high-probability breakout setups by combining volatility anticipation with precise range measurement at the market's most liquid opening window.
#### **🎯 Core Purpose**
Identifies **high-potential breakout setups** at the New York open (13:30 UTC) by combining:
1. **Volatility filters** (dual ATR periods)
2. **Tick-based range analysis**
3. **Time-specific triggers**
---
### **⚙️ Key Components**
| **Feature** | **Function** |
|---------------------------|-----------------------------------------------------------------------------|
| **ATR Filters** | Dual volatility checks (short + long periods) at 13:25 UTC |
| **Tick Range Limit** | Highlights candles with range < user-defined ticks (default: 150) |
| **Time Precision** | Focuses exclusively on 13:30 UTC weekday candles |
| **Visual Markers** | Yellow highlight + tick count label (e.g., "147/150 ticks") |
| **Info Panel** | Real-time display of settings and current tick count |
---
### **📊 How It Works**
1. **Pre-Open Check (13:25 UTC)**
- Verifies market volatility using 2 ATR values
- Requires both to exceed user-defined thresholds
2. **Open Analysis (13:30 UTC)**
- Measures exact tick count: `(high - low) / instrument_mintick`
- Compares against your max tick limit (adjustable 1-5000)
3. **Visual Trigger**
- Highlights candle yellow if:
```tick_count < your_set_limit```
- Labels show exact performance vs limit (e.g., "142/150 ticks")
---
### **⚡ Trading Signals**
| **Condition** | **Visual Feedback** |
|----------------------------|---------------------------------------------|
| High volatility + tight range | Yellow candle + tick count label |
| All other scenarios | No marking |
---
### **🛠️ Customization**
```pine
// Key Adjustable Parameters:
maxTicks = input.int(150) // Set 1-5000 ticks
atrPeriod1 = input.int(14) // Short ATR (2-5000)
atrPeriod2 = input.int(161) // Long ATR (2-5000)
candleColor = input.color(color.yellow) // Highlight color
```
---
### **💡 Practical Use Cases**
1. **Breakout Anticipation**
- Tight ranges after volatility spikes often precede strong moves
2. **Session Scalping**
- Identify low-range opens for mean-reversion plays
3. **Volatility Filtering**
- Avoid trading when ATR thresholds aren't met
---
### **📈 Suggested Settings**
| **Market** | **Max Ticks** | **ATR Periods** |
|------------------|--------------|----------------|
| Forex (EUR/USD) | 100-200 | 14/161 |
| Stocks (SPY) | 50-120 | 10/200 |
| Crypto (BTC) | 300-500 | 20/100 |
---
### **✅ Benefits**
- **Precision Timing**: Focused on NY open liquidity surge
- **Quantitative Filtering**: Exact tick measurement + volatility thresholds
- **Clean Visuals**: No chart clutter - only marks qualifying candles
- **Adaptable**: Works across all markets and timeframes
This system helps traders spot high-probability breakout setups by combining volatility anticipation with precise range measurement at the market's most liquid opening window.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
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 sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
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.