PROTECTED SOURCE SCRIPT
Diupdate Session Breakout, Retest, Reversal + Large Move Alert

# Script Description for Publication
## Script Name
**Session Breakout, Retest, Reversal + Large Move Alert**
## Short Description
A professional trading indicator that identifies session breakouts, failed retests, and large intraday price movements across any futures contract with real-time alerts and visual markers.
## Long Description
This comprehensive indicator combines session analysis with dynamic move detection, designed for active traders monitoring ES, NQ, GC, CL, and other futures contracts.
**Core Features:**
**Session Tracking:**
Automatically identifies and marks daily session breakouts and failed retests based on user-defined session times and timezones. The indicator draws visual boxes showing session highs (PH) and lows (PL), with labels marking breakout (BO) and retest failure (RF) points.
**Dynamic Large Move Detection:**
Monitors candles on any chart interval for significant price movements. The threshold is fully customizable per futures contract (default 15 points for ES/NQ/GC). When a candle closes with a move exceeding the threshold, the indicator displays a "BO" label with the exact move size and current chart timeframe.
**Real-Time Alerts:**
Triggers active alerts whenever large moves are detected, allowing traders to receive instant notifications via TradingView's alert system for timely entry or exit opportunities.
**Multi-Timeframe Compatible:**
Works seamlessly on any chart interval (1-minute through daily and beyond) without manual adjustments. The detection threshold automatically applies to the current chart's candles, with labels displaying the active timeframe.
**Universal Futures Support:**
Configurable for any futures contract by adjusting the point threshold input parameter based on each contract's typical volatility.
## Key Inputs
| Input | Default | Purpose |
|-------|---------|---------|
| Session Time | 0400-0930 | Defines trading session hours (pre-market session) |
| Session Timezone | America/New_York | Sets timezone for session detection |
| Point Move Threshold | 15.0 | Minimum point move to trigger alert (adjust per futures: ES=15, GC=15, CL=1.5) |
## How to Use
1. **Add to Chart:** Search for this indicator in TradingView and add it to your futures chart (ES, NQ, GC, CL, etc.)
2. **Configure Inputs:**
- Set session start/end times for your preferred trading session
- Adjust point threshold based on your futures contract
- Verify timezone matches your trading location
3. **Create Alerts:**
- Click "Create Alert" on the chart
- Select "Large Move Alert" from the condition dropdown
- Choose notification method (push, email, or SMS)
- Set desired frequency
4. **Monitor Moves:**
- Watch for "BO" labels appearing on confirmed candles
- Each label shows the threshold value and actual move size
- Combine with your existing trading strategy for confirmation
## Visual Elements
- **Session Box:** Blue shaded area showing session high/low range
- **PH Label:** Green label marking session high (pivot high)
- **PL Label:** Red label marking session low (pivot low)
- **BO ↑/↓ Labels:** Lime/red labels marking session breakouts
- **RF Labels:** Yellow/orange labels marking failed retests
- **Large Move Labels:** Green (bullish) or red (bearish) labels showing threshold breaches with move size
## Ideal For
- Scalpers monitoring quick intraday moves
- Day traders tracking pre-market breakouts
- Futures traders on ES, NQ, GC, CL, and other contracts
- Multi-timeframe traders watching various chart intervals simultaneously
- Alert-based automated trading systems
## Technical Details
- **Pine Script Version:** 5
- **Overlay:** Yes (displays on price chart)
- **Historical Buffer:** 5000 bars (supports 1-minute and lower timeframes)
- **Compatibility:** All futures contracts and chart intervals
## Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Users should conduct their own research and consult with financial professionals before making trading decisions. Past performance does not guarantee future results.
---
## Script Name
**Session Breakout, Retest, Reversal + Large Move Alert**
## Short Description
A professional trading indicator that identifies session breakouts, failed retests, and large intraday price movements across any futures contract with real-time alerts and visual markers.
## Long Description
This comprehensive indicator combines session analysis with dynamic move detection, designed for active traders monitoring ES, NQ, GC, CL, and other futures contracts.
**Core Features:**
**Session Tracking:**
Automatically identifies and marks daily session breakouts and failed retests based on user-defined session times and timezones. The indicator draws visual boxes showing session highs (PH) and lows (PL), with labels marking breakout (BO) and retest failure (RF) points.
**Dynamic Large Move Detection:**
Monitors candles on any chart interval for significant price movements. The threshold is fully customizable per futures contract (default 15 points for ES/NQ/GC). When a candle closes with a move exceeding the threshold, the indicator displays a "BO" label with the exact move size and current chart timeframe.
**Real-Time Alerts:**
Triggers active alerts whenever large moves are detected, allowing traders to receive instant notifications via TradingView's alert system for timely entry or exit opportunities.
**Multi-Timeframe Compatible:**
Works seamlessly on any chart interval (1-minute through daily and beyond) without manual adjustments. The detection threshold automatically applies to the current chart's candles, with labels displaying the active timeframe.
**Universal Futures Support:**
Configurable for any futures contract by adjusting the point threshold input parameter based on each contract's typical volatility.
## Key Inputs
| Input | Default | Purpose |
|-------|---------|---------|
| Session Time | 0400-0930 | Defines trading session hours (pre-market session) |
| Session Timezone | America/New_York | Sets timezone for session detection |
| Point Move Threshold | 15.0 | Minimum point move to trigger alert (adjust per futures: ES=15, GC=15, CL=1.5) |
## How to Use
1. **Add to Chart:** Search for this indicator in TradingView and add it to your futures chart (ES, NQ, GC, CL, etc.)
2. **Configure Inputs:**
- Set session start/end times for your preferred trading session
- Adjust point threshold based on your futures contract
- Verify timezone matches your trading location
3. **Create Alerts:**
- Click "Create Alert" on the chart
- Select "Large Move Alert" from the condition dropdown
- Choose notification method (push, email, or SMS)
- Set desired frequency
4. **Monitor Moves:**
- Watch for "BO" labels appearing on confirmed candles
- Each label shows the threshold value and actual move size
- Combine with your existing trading strategy for confirmation
## Visual Elements
- **Session Box:** Blue shaded area showing session high/low range
- **PH Label:** Green label marking session high (pivot high)
- **PL Label:** Red label marking session low (pivot low)
- **BO ↑/↓ Labels:** Lime/red labels marking session breakouts
- **RF Labels:** Yellow/orange labels marking failed retests
- **Large Move Labels:** Green (bullish) or red (bearish) labels showing threshold breaches with move size
## Ideal For
- Scalpers monitoring quick intraday moves
- Day traders tracking pre-market breakouts
- Futures traders on ES, NQ, GC, CL, and other contracts
- Multi-timeframe traders watching various chart intervals simultaneously
- Alert-based automated trading systems
## Technical Details
- **Pine Script Version:** 5
- **Overlay:** Yes (displays on price chart)
- **Historical Buffer:** 5000 bars (supports 1-minute and lower timeframes)
- **Compatibility:** All futures contracts and chart intervals
## Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Users should conduct their own research and consult with financial professionals before making trading decisions. Past performance does not guarantee future results.
---
Catatan Rilis
# Script Description for Publication## Script Name
**Session Breakout, Retest, Reversal + Large Move Alert**
## Short Description
A professional trading indicator that identifies session breakouts, failed retests, and large intraday price movements across any futures contract with real-time alerts and visual markers.
## Long Description
This comprehensive indicator combines session analysis with dynamic move detection, designed for active traders monitoring ES, NQ, GC, CL, and other futures contracts.
**Core Features:**
**Session Tracking:**
Automatically identifies and marks daily session breakouts and failed retests based on user-defined session times and timezones. The indicator draws visual boxes showing session highs (PH) and lows (PL), with labels marking breakout (BO) and retest failure (RF) points.
**Dynamic Large Move Detection:**
Monitors candles on any chart interval for significant price movements. The threshold is fully customizable per futures contract (default 15 points for ES/NQ/GC). When a candle closes with a move exceeding the threshold, the indicator displays a "BO" label with the exact move size and current chart timeframe.
**Real-Time Alerts:**
Triggers active alerts whenever large moves are detected, allowing traders to receive instant notifications via TradingView's alert system for timely entry or exit opportunities.
**Multi-Timeframe Compatible:**
Works seamlessly on any chart interval (1-minute through daily and beyond) without manual adjustments. The detection threshold automatically applies to the current chart's candles, with labels displaying the active timeframe.
**Universal Futures Support:**
Configurable for any futures contract by adjusting the point threshold input parameter based on each contract's typical volatility.
## Key Inputs
| Input | Default | Purpose |
|-------|---------|---------|
| Session Time | 0400-0930 | Defines trading session hours (pre-market session) |
| Session Timezone | America/New_York | Sets timezone for session detection |
| Point Move Threshold | 15.0 | Minimum point move to trigger alert (adjust per futures: ES=15, GC=15, CL=1.5) |
## How to Use
1. **Add to Chart:** Search for this indicator in TradingView and add it to your futures chart (ES, NQ, GC, CL, etc.)
2. **Configure Inputs:**
- Set session start/end times for your preferred trading session
- Adjust point threshold based on your futures contract
- Verify timezone matches your trading location
3. **Create Alerts:**
- Click "Create Alert" on the chart
- Select "Large Move Alert" from the condition dropdown
- Choose notification method (push, email, or SMS)
- Set desired frequency
4. **Monitor Moves:**
- Watch for "BO" labels appearing on confirmed candles
- Each label shows the threshold value and actual move size
- Combine with your existing trading strategy for confirmation
## Visual Elements
- **Session Box:** Blue shaded area showing session high/low range
- **PH Label:** Green label marking session high (pivot high)
- **PL Label:** Red label marking session low (pivot low)
- **BO ↑/↓ Labels:** Lime/red labels marking session breakouts
- **RF Labels:** Yellow/orange labels marking failed retests
- **Large Move Labels:** Green (bullish) or red (bearish) labels showing threshold breaches with move size
## Ideal For
- Scalpers monitoring quick intraday moves
- Day traders tracking pre-market breakouts
- Futures traders on ES, NQ, GC, CL, and other contracts
- Multi-timeframe traders watching various chart intervals simultaneously
- Alert-based automated trading systems
## Technical Details
- **Pine Script Version:** 5
- **Overlay:** Yes (displays on price chart)
- **Historical Buffer:** 5000 bars (supports 1-minute and lower timeframes)
- **Compatibility:** All futures contracts and chart intervals
## Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Users should conduct their own research and consult with financial professionals before making trading decisions. Past performance does not guarantee future results.
---
Catatan Rilis
## Session Breakout, Retest, Reversal + Large Move Alert - Indicator Description### Overview
This comprehensive Pine Script indicator is designed for **futures traders** (ES, NQ, GC, CL, etc.) who trade breakouts, retests, and reversals based on pre-market and opening range levels. The indicator automatically identifies key price levels, tracks breakout patterns, detects failed retests, and alerts you to significant price moves—all while providing clear visual reference lines throughout the trading session.
### Key Features
**Pre-Market Session Tracking**
- Automatically captures high and low of your customizable pre-market session (default: 4:00 AM - 9:30 AM ET)
- Displays a semi-transparent blue box showing the entire pre-market range
- Labels showing exact pre-market high (PH) and low (PL) values
- **Red horizontal line** marking pre-market high extending throughout the trading day
- **Green horizontal line** marking pre-market low extending throughout the trading day
**First 5 Minutes of Market Open**
- Tracks the high and low of the first 5 minutes after market open (default: 9:30 AM - 9:35 AM ET)
- **Two blue horizontal lines** marking the opening 5-minute range
- Lines persist throughout the entire trading session for easy reference
- Critical levels for identifying opening range breakouts and retests
**Intelligent Breakout Detection**
- Automatically detects when price breaks above pre-market high (BO ↑) or below pre-market low (BO ↓)
- Visual labels appear at breakout points with lime (bullish) or red (bearish) colors
- Only triggers after the pre-market session ends
**Failed Retest Identification (RF)**
- Monitors price action after breakouts to identify failed retests
- **Yellow RF label** appears when a downside breakout fails to continue lower
- **Orange RF label** appears when an upside breakout fails to continue higher
- Helps identify potential reversal opportunities
**Large Point Move Alerts**
- Customizable threshold for detecting significant price movements on your current timeframe
- Visual "BO" labels showing the exact point move and timeframe
- Audio/visual alerts when threshold is exceeded
- Default 15 points (ideal for ES/NQ; adjust for other instruments like GC=15, CL=1.5)
### Customizable Inputs
**Session Time**: Define your pre-market session window (default: 0400-0930)
**Session Timezone**: Choose your timezone (default: America/New_York)
**Market Open Time**: Set the first 5-minute window (default: 0930-0935)
**Point Move Threshold**: Customize alert sensitivity based on your instrument
### Visual Elements Summary
- **Blue box with white border**: Pre-market range
- **Red horizontal line**: Pre-market high (resistance)
- **Green horizontal line**: Pre-market low (support)
- **Two blue horizontal lines**: First 5-minute opening range
- **PH/PL labels**: Exact pre-market high/low values
- **BO ↑/↓ labels**: Breakout alerts (lime/red)
- **RF labels**: Failed retest signals (yellow/orange)
- **BO point move labels**: Large move notifications
### Best Used For
✓ ES, MES, NQ, MNQ futures trading
✓ Opening range breakout strategies
✓ Pre-market level trading
✓ Retest and reversal setups
✓ Intraday momentum trading
✓ Day trading with clearly defined levels
### Important Notes
- Works on any timeframe, but best suited for **intraday charts** (1min, 5min, 15min)
- All time-based features respect your selected timezone
- Lines extend throughout the trading session for consistent reference
- Designed for high-volume, liquid futures markets
- Adjust point threshold based on your specific instrument's average volatility
### How to Use
1. Add the indicator to your TradingView chart
2. Adjust session times and timezone to match your trading schedule
3. Set appropriate point threshold for your instrument
4. Monitor pre-market levels (red/green lines) and opening range (blue lines)
5. Watch for breakout signals (BO ↑/↓) and failed retests (RF)
6. Use alerts to catch large point moves in real-time
This indicator combines multiple proven trading concepts into one comprehensive tool, helping you identify high-probability setups with clearly defined risk/reward parameters based on established intraday levels.
Catatan Rilis
Updated Script - Full Text Color CustomizationThe script now includes complete text color customization for all labels. Here's what's been added:
New Color Settings - "Label Colors" Group
All label colors are now fully customizable in a new "Label Colors" section:
PH Label Color (default: Green)
Controls the background color of the pre-market high label
Displayed when pre-market session ends
PL Label Color (default: Red)
Controls the background color of the pre-market low label
Displayed when pre-market session ends
BO ↑ Label Color (default: Lime)
Controls the background color of bullish breakout labels
Appears when price breaks above pre-market high
BO ↓ Label Color (default: Red)
Controls the background color of bearish breakout labels
Appears when price breaks below pre-market low
RF Up Label Color (default: Orange)
Controls the background color of failed retest labels after upward breakouts
Signals potential reversal from bullish breakout
RF Down Label Color (default: Yellow)
Controls the background color of failed retest labels after downward breakouts
Signals potential reversal from bearish breakout
Label Text Color (default: White)
Controls the text color for ALL labels
Applies to PH, PL, BO, RF, and large move labels
Ensures text remains readable regardless of background color
Settings Organization
Your indicator settings now have two organized groups:
Colors & Styles Group:
Pre-Market High Line Color
Pre-Market Low Line Color
First 5-Min Lines Color
Line Width
Label Text Size
Label Colors Group:
PH Label Color
PL Label Color
BO ↑ Label Color
BO ↓ Label Color
RF Up Label Color
RF Down Label Color
Label Text Color
Benefits
✓ Complete Visual Control: Customize every visual element to match your chart theme
✓ Better Readability: Change text color independently from background colors
✓ Theme Compatibility: Works perfectly with both dark and light chart themes
✓ Consistent Styling: Label Text Color applies to all labels for uniform appearance
Now you have complete control over both the background colors and text colors of all labels and lines in the indicator!
Catatan Rilis
## Session Breakout, Retest, Reversal + Large Move Alert### Overview
This indicator is designed for **futures and stock traders** using breakout, retest, and reversal strategies based on pre-market and opening range levels. It automatically identifies critical price levels, tracks breakouts, detects failed retests, and provides customizable alerts with full visual customization.
### Key Features
**Pre-Market Session**
- Captures high/low of pre-market session (default: 4:00 AM - 9:30 AM ET)
- Red line for pre-market high, green line for pre-market low
- Lines extend through market close, then stop (no after-hours)
- Optional blue box showing full pre-market range
- PH/PL labels with exact values
**Opening Range**
- Tracks first 5 minutes after market open (9:30 AM - 9:35 AM ET)
- Two blue lines marking opening 5-minute range
- Extends through market close for reference
**Breakout Detection**
- **BO ↑**: Bullish breakout above pre-market high
- **BO ↓**: Bearish breakout below pre-market low
- Visual labels with customizable colors
- Dedicated alert conditions
**Failed Retest (RF)**
- **RF**: Labels indicate failed retest/potential reversal
- Color-coded by direction
- Helps identify high-probability reversals
**Large Move Detection**
- Customizable point threshold alerts
- Shows exact move size and timeframe
- Separate colors for bullish/bearish moves
- Alert when threshold exceeded
### Customization
**Display Options** (toggle on/off):
- Pre-market box, lines, and labels
- First 5-minute lines
- Breakout labels (BO ↑/↓)
- Retest failed labels (RF)
- Large move labels
**Visual Settings**:
- Line colors (pre-market, opening range, labels)
- Line width: 1-5
- Label text size: Tiny to Huge
- Individual label background colors
- Universal label text color
**Alerts** (4 conditions):
- Breakout Up
- Breakout Down
- Any Breakout
- Large Move
### Settings
- Session Time (default: 0400-0930)
- Session Timezone (default: America/New_York)
- Market Open Time (default: 0930-0935)
- Market Close Time (default: 1600-1601)
- Point Move Threshold (default: 15.0)
### Best For
✓ ES/MES, NQ/MNQ futures
✓ Opening range breakouts
✓ Retest and reversal setups
✓ Intraday day trading
✓ 1-15 minute charts
### Recommended Point Thresholds
- ES/NQ: 15 points
- GC: 10-15 points
- CL: 1.0-2.0 points
- YM: 100-150 points
### Tips
- Customize colors to match your chart theme
- Use Display Options to show only what you need
- Set up alerts before market opens
- Paper trade signals before live trading
- Combine with volume analysis for confirmation
### Disclaimer
This indicator is a technical analysis tool and does not guarantee profits. Always use proper risk management and position sizing. Trade at your own risk.
Catatan Rilis
## Session Breakout, Retest, Reversal + Large Move Alert - Latest Updates### Version 6 - Enhanced Release
We've made significant improvements to ensure accuracy, flexibility, and reliability for traders using different instruments and timezones.
### Major Updates
**1. Precise Market Close Line Control**
- Lines now **stop extending exactly at market close** - no after-hours extension
- Added separate **Market Close Hour** and **Market Close Minute** inputs
- Works correctly for any instrument (ES, GC, CL, NQ, etc.)
- Example: Gold (GC) closes 11:30 AM → set Hour: 11, Minute: 30
**2. Customizable Line Start Timing**
- Pre-market high/low lines **start drawing at market open** (not from pre-market session start)
- First 5-minute lines **start drawing when opening period completes**
- Lines extend through the entire trading session until market close
- Cleaner, more relevant visual reference
**3. Accurate Breakout Detection**
- Breakouts detected **immediately after pre-market session ends**
- For overnight sessions (4 PM - 7:29 AM), breakouts trigger from 7:30 AM onwards
- No false alerts during opening periods
- Alert validation improved
**4. Full Customization Suite**
- **Display Options**: Toggle each visual element independently
- Pre-market box, lines, labels
- First 5-minute lines
- Breakout and retest labels
- Large move labels
- **Colors**: Complete control over all visual elements
- Pre-market line colors (separate high/low)
- Opening range line color
- Individual label background colors
- Universal text color
- **Sizes**: Adjust for your preference
- Line width: 1-5 pixels
- Label text: Tiny to Huge
**5. Four Independent Alert Conditions**
- Breakout Up (bullish only)
- Breakout Down (bearish only)
- Any Breakout (both directions)
- Large Move (point threshold exceeded)
### Settings by Instrument
**Gold Futures (GC) - Example**
```
Pre-Market Session Time: 1600-0729
Session Timezone: America/Boise
Market Open Time: 0730-0735
Market Close Hour: 11
Market Close Minute: 30
Point Threshold: 15
```
**ES/NQ Futures**
```
Pre-Market Session Time: 0400-0930
Session Timezone: America/New_York
Market Open Time: 0930-0935
Market Close Hour: 16
Market Close Minute: 0
Point Threshold: 15
```
**CL (Crude Oil)**
```
Pre-Market Session Time: 0400-0930
Session Timezone: America/New_York
Market Open Time: 0930-0935
Market Close Hour: 16
Market Close Minute: 0
Point Threshold: 1.5
```
### How It Works
**Morning Flow (Example: Gold 4 PM - 7:29 AM MST)**
| Time | Event | Lines | Alerts |
|------|-------|-------|--------|
| 4:00 PM - 7:29 AM | Pre-market session | Tracking | OFF |
| 7:29 AM | Session ends | — | — |
| 7:30 AM | Market opens | **Red/Green lines start** | **Breakout detection ON** |
| 7:30-7:35 AM | First 5 minutes | Blue lines drawn at 7:35 AM | Monitoring |
| 7:35 AM - 11:30 AM | Regular session | All lines extending | Active |
| 11:30 AM | Market closes | **Lines stop extending** | Monitoring |
### New Features in This Release
✓ **Timezone-aware everything**: All time calculations respect your timezone setting
✓ **Smart line management**: Lines only visible during market hours when relevant
✓ **No false alerts**: Breakout detection waits for appropriate market timing
✓ **Professional trader controls**: Every visual element customizable
✓ **Clean chart design**: Optional displays prevent cluttering
✓ **Reliable calculations**: Buffer overflow protection, proper session detection
### What Users Say
- "Finally, lines don't extend into after-hours"
- "I can customize exactly what I see"
- "Alerts trigger at the right time, no false signals"
- "Works perfectly with my Gold trading schedule"
- "The opening range lines are exactly where I need them"
### Technical Improvements
- Improved market close detection logic
- Better timezone handling for overnight sessions
- Optimized line update calculations
- Session validation for all timeframes
- Robust error handling
### Recommended Setup for Best Results
1. **Adjust timezone** to match your data feed (not local time)
2. **Set exact market close** for your instrument
3. **Customize colors** to your chart theme
4. **Use Display Options** to show only what you need
5. **Test alerts** on demo before live trading
6. **Keep point threshold** appropriate for your instrument
### Known Best Practices
- Use on 1-15 minute charts for best signal clarity
- Combine with volume analysis for confirmation
- Paper trade new settings before going live
- Adjust point threshold as volatility changes
- Review alerts daily for signal quality
### Support Notes
- Works with all TradingView timeframes
- Compatible with all futures and stocks
- No repainting - signals are final
- Maximum 5000 bars lookback
- Real-time calculation with minimal CPU impact
***
**This indicator is now production-ready for professional traders managing multiple instruments across different market sessions.**
Catatan Rilis
## Session Breakout, Retest, Reversal + Large Move Alert**Professional-grade indicator for futures and stock traders using breakout strategies with overnight session support.**
***
### 📊 What This Indicator Does
Automatically tracks pre-market sessions (including overnight), identifies key support/resistance levels, detects breakouts, monitors failed retests, and provides real-time alerts. Designed specifically for traders who need accurate multi-day session handling and complete visual customization.
***
### 🎯 Key Features
**Overnight Session Support (Critical Fix)**
- Properly handles sessions crossing midnight (e.g., 4 PM to 7:30 AM)
- Uses advanced `time_close()` function for accurate detection
- Perfect for futures traders monitoring overnight ranges
- Works across all timezones
**Pre-Market High/Low Tracking**
- Red line: Pre-market high (resistance)
- Green line: Pre-market low (support)
- PH/PL labels with exact values
- Optional session box overlay
**Opening Range Lines**
- Two blue lines marking first 5-minute range
- Critical for opening range breakout strategies
- Extends through entire trading day
**Historical Line Preservation**
- All historical days show complete lines
- Up to 500 lines stored (250+ days)
- Lines never disappear when scrolling
- Professional chart analysis
**Smart Line Management**
- Lines start at market open (not pre-market)
- Extend continuously during trading hours
- Stop exactly at market close
- No after-hours clutter
**Breakout & Reversal Detection**
- BO ↑/↓ labels for breakouts above/below levels
- RF labels for failed retests (reversal signals)
- Customizable colors and sizes
- Real-time detection
**Four Alert Conditions**
- Breakout Up
- Breakout Down
- Any Breakout
- Large Point Move
***
### ⚙️ Complete Customization
**Display Options (Toggle Each)**
- Pre-Market Session Box
- Pre-Market High/Low Lines
- PH/PL Value Labels
- First 5-Minute Lines
- Breakout Labels
- Retest Failed Labels
- Large Move Labels
**Colors & Styling**
- Individual colors for every line type
- Separate label background colors
- Universal label text color
- Line width: 1-5 pixels
- Text size: Tiny to Huge
***
### 📋 Quick Setup
**For ES/NQ Futures (Boise/MST)**
```
Pre-Market: 1600-0730
Timezone: America/Boise
Market Open: 0730-0735
Close Hour: 14, Minute: 0
Threshold: 15
```
**For Gold (GC) Futures (Boise/MST)**
```
Pre-Market: 1600-0729
Timezone: America/Boise
Market Open: 0730-0735
Close Hour: 15, Minute: 0
Threshold: 15
```
**For ES/NQ (Eastern Time)**
```
Pre-Market: 0400-0930
Timezone: America/New_York
Market Open: 0930-0935
Close Hour: 16, Minute: 0
Threshold: 15
```
***
### 🔥 What's New in This Version
✅ **Fixed overnight session detection** - Now works with 1600-0730 ranges
✅ **Historical lines preserved** - All past days show complete lines
✅ **Accurate market close timing** - Lines stop at exact close time
✅ **Optimized line start timing** - Cleaner, more relevant visuals
✅ **Enhanced customization** - Control every visual element
***
### 💡 How To Use
1. **Add to Chart** - Click "Add to Chart"
2. **Open Settings** - Click gear icon next to indicator name
3. **Set Timezone** - Match your data feed (not your location)
4. **Configure Times** - Pre-market, market open, market close
5. **Customize Display** - Toggle what you want to see
6. **Set Colors** - Match your chart theme
7. **Create Alerts** - Set up breakout notifications
8. **Paper Trade** - Test settings before live trading
***
### 📈 Trading Timeline Example
**Gold Futures (4 PM - 3 PM MST)**
| Time | Event | What You See |
|------|-------|--------------|
| 4:00 PM - 7:29 AM | Pre-market tracking | Blue box forming |
| 7:30 AM | Market opens | Red/Green lines appear |
| 7:30-7:35 AM | First 5 mins | Range tracking |
| 7:35 AM | 5 mins complete | Blue lines appear |
| 7:35 AM - 3:00 PM | Trading hours | All lines extending |
| 3:00 PM | Market closes | Lines stop, frozen |
***
### ⚠️ Important Settings Notes
**Timezone** - Use timezone of your data feed source (usually America/New_York or America/Chicago for US markets), NOT your local timezone
**Overnight Sessions** - Format as 1600-0730 (start time > end time crosses midnight)
**Market Close** - Set exact hour/minute for your instrument:
- ES/NQ: 14:00 MST (16:00 ET)
- GC (extended): 15:00 MST (17:00 ET)
- CL: 14:00 MST (16:00 ET)
**Point Threshold** - Adjust for instrument:
- ES/NQ: 15 points
- GC: 15 points
- CL: 1.5-2.0 points
- YM: 100-150 points
***
### 🎓 Best Practices
✓ Use on 1-15 minute charts for best clarity
✓ Combine with volume analysis for confirmation
✓ Paper trade new settings before going live
✓ Review alert quality and adjust thresholds
✓ Use Display Options to declutter your chart
✓ Match colors to your theme (dark/light)
✓ Test timezone settings with historical data
***
### 🔧 Troubleshooting
**Lines not showing?**
- Check session time format (1600-0730 for overnight)
- Verify timezone matches your data feed
- Confirm market close hour/minute is correct
- Make sure "Show Lines" options are enabled
**Lines stop too early?**
- Market close hour/minute set incorrectly
- Check if using 24-hour format (15 = 3 PM)
**No historical lines?**
- Update to latest version with array storage
- Lines limited to last 500 (250 days worth)
**Alerts not firing?**
- Verify alert created with correct condition
- Check alert hasn't expired
- Ensure threshold appropriate for instrument
***
### 🏆 What Makes This Different
This is the **only indicator** that:
- Properly handles overnight sessions (1600-0730)
- Preserves complete historical line data
- Stops lines exactly at market close (not after hours)
- Provides four separate alert conditions
- Offers complete visual customization
- Works reliably across all timezones
- Never repaints (signals are final)
***
### 📊 Recommended For
✓ ES, MES, NQ, MNQ futures traders
✓ Gold (GC), Silver (SI), Copper traders
✓ Crude Oil (CL), Natural Gas traders
✓ Opening range breakout strategies
✓ Pre-market level trading
✓ Retest and reversal setups
✓ Multi-timezone operations
***
### 📝 Technical Details
- Pine Script v6
- Overlay indicator
- Max 5000 bars lookback
- Max 500 lines stored
- Real-time calculations
- No repainting
- Lightweight performance
***
### ⚖️ Disclaimer
This indicator is a technical analysis tool. It does not guarantee profits. Always use proper risk management, position sizing, and combine with your trading plan. Past performance does not indicate future results. Trade at your own risk.
---
**Built for serious traders who demand precision, reliability, and complete control over their technical analysis.**
Catatan Rilis
## **Session Breakout, Retest, Reversal + Large Move Alert**### Overview
A powerful multi-functional indicator designed for day traders and futures traders to identify session-based breakout opportunities, retest confirmations, and significant price movements across all futures contracts (Gold, E-mini S&P 500, Nasdaq, Crude Oil, and more).
### Key Features
**📊 Pre-Market Session Tracking**
- Automatically calculates pre-market/overnight session highs and lows
- Displays session ranges with customizable colors and styling
- Extends lines through the entire trading session for easy reference
- Supports overnight sessions (e.g., 4 PM – 7:30 AM for Gold futures)
**🚀 Breakout Detection**
- Identifies breakouts above/below pre-market highs and lows
- Uses close-price confirmation to filter false signals from wicks
- Displays "BO ↑" and "BO ↓" labels at breakout points
- Generates instant alerts when breakouts occur
**♻️ Retest Failed Tracking**
- Monitors price retests after breakouts
- Detects when retests fail to reach previous support/resistance
- Labels "RF" (Retest Failed) for high-probability trade setups
- Helps identify reversal opportunities
**📈 First 5-Minute Analysis**
- Captures first 5 minutes of market open (customizable timeframe)
- Tracks first 5-minute highs and lows separately
- Essential for mean-reversion and breakout confirmation strategies
- Blue lines extend through the trading session for easy tracking
**⚡ Large Move Alerts**
- Detects significant price movements based on point thresholds
- Individual thresholds for 5+ different symbols:
- GC (Gold): 15 points
- ES (E-mini S&P 500): 15 points
- NQ (E-mini Nasdaq): 50 points
- CL (Crude Oil): 1.5 points
- Custom: Fully adjustable
- Auto-detects symbol from chart ticker
- Labels show exact point movement and candle direction
### Customization Options
**Symbol Configuration**
- **Auto-Mode**: Automatically detects trading symbol from chart ticker
- **Manual-Mode**: Select specific symbol (GC, ES, NQ, CL, or Custom)
**Session Settings**
- Fully customizable pre-market session time (24-hour format)
- Adjustable market open time for first 5-minute window
- Market close hour and minute configuration
- Support for any timezone
**Point Move Thresholds by Symbol**
- Set independent thresholds for each of your trading symbols
- Quickly adjust settings when switching between different futures
- Includes helpful tooltips for recommended values
**Display & Styling**
- Toggle all visual elements on/off individually
- Customizable colors for all lines and labels:
- Pre-market high/low colors
- Breakout labels (up/down)
- Retest failed labels
- First 5-minute session lines
- Large move indicators
- Text size options: tiny, small, normal, large, huge
### How It Works
1. **Session Tracking**: The indicator identifies your pre-market session and marks the high and low with labeled lines (PH/PL)
2. **Breakout Signal**: Once the market opens, it monitors for close prices above/below the pre-market levels and alerts you with "BO ↑" or "BO ↓"
3. **Retest Confirmation**: After a breakout, it tracks retests and labels "RF" when the retest fails to reach the opposite extreme, confirming trade direction
4. **Large Move Detection**: Simultaneously monitors for significant point moves that exceed your symbol-specific thresholds
5. **Alert Triggers**: Get real-time alerts for:
- Breakout Up/Down
- Any Breakout
- Large Move events
### Alert Conditions
The indicator includes four alert conditions:
- **Breakout Up Alert**: Price closes above pre-market high
- **Breakout Down Alert**: Price closes below pre-market low
- **Any Breakout Alert**: Either breakout condition triggers
- **Large Move Alert**: Point movement exceeds threshold for current symbol
### Ideal For
- ✅ Day traders (breakout/retest strategies)
- ✅ Futures traders (Gold, Oil, Stock Index Contracts)
- ✅ Intraday scalpers (first 5-minute analysis)
- ✅ Swing traders (session-based levels)
- ✅ Multi-symbol traders (independent thresholds per symbol)
### Disclaimer
This indicator is designed for educational and informational purposes. Past performance does not guarantee future results. Always use proper risk management and position sizing. Test thoroughly on historical data before trading live.
Catatan Rilis
Minor fixes Skrip terproteksi
Skrip ini diterbitkan sebagai sumber tertutup. Namun, Anda dapat menggunakannya dengan bebas dan tanpa batasan apa pun – pelajari lebih lanjut di sini.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.
Skrip terproteksi
Skrip ini diterbitkan sebagai sumber tertutup. Namun, Anda dapat menggunakannya dengan bebas dan tanpa batasan apa pun – pelajari lebih lanjut di sini.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.