OPEN-SOURCE SCRIPT
Diupdate AI Market Open - Live Session Tracker (PDH/PDL/ONH/ONL)

๐ค AI MARKET OPEN - LIVE SESSION TRACKER
A comprehensive real-time tracking system designed for intraday traders who trade the market open using previous day levels (PDH/PDL) and overnight session ranges (ONH/ONL). This indicator provides intelligent context and mitigation tracking to help you make informed trading decisions during the critical morning session.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ WHAT THIS INDICATOR DOES
This indicator automatically tracks and displays six critical price levels:
โข PDH (Previous Day High) - Yesterday's regular session high (9:30 AM - 4:00 PM ET)
โข PDL (Previous Day Low) - Yesterday's regular session low
โข PDC (Previous Day Close) - Yesterday's 3:59 PM ET close price
โข ONH (Overnight High) - Overnight session high (6:00 PM - 9:29 AM ET)
โข ONL (Overnight Low) - Overnight session low
โข 9:30 Open - The exact opening price at market open
It monitors whether each level has been "mitigated" (touched/tested) in real-time and provides AI-generated context about current market structure.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ฏ KEY FEATURES
โ REAL-TIME MITIGATION TRACKING
โข Live status updates showing โ (mitigated) or โณ (unmitigated) for each level
โข Persistent tracking - once a level is touched, it stays marked
โข Gap fill detection with ๐ (filled) or ๐ (open) status
โ DYNAMIC CALCULATIONS
โข ฮ Open: Distance from 9:30 AM opening price to each level
โข RT ฮ: Real-time distance from current price to each level
โข Automatic color coding (green for resistance, red for support)
โ AI MARKET CONTEXT SUMMARY
The indicator generates intelligent commentary based on:
โข Gap size classification (large/moderate/small)
โข PDH/PDL mitigation status
โข Current position within overnight range
โข Directional bias and key levels to watch
โ CUSTOMIZABLE DISPLAY
โข Choose table position (9 locations available)
โข Adjustable text size (tiny/small/normal/large)
โข Custom colors for headers, summary text, and background
โข Show/hide table with single toggle
โ PROFESSIONAL LEVEL LINES
โข Ray-style horizontal lines extending right
โข Customizable line width (1-4)
โข Three line styles: Solid, Dashed, Dotted
โข Color-coded labels with exact price values
โข Lines auto-update and reset each session
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ง HOW IT WORKS
SESSION TRACKING
โข Regular Session: 9:30 AM - 4:00 PM ET (for PDH/PDL calculation)
โข Close Capture: 3:59 PM ET close becomes PDC
โข Overnight Session: 6:00 PM - 9:29 AM ET (for ONH/ONL)
โข Session Reset: 6:00 PM ET daily
MITIGATION LOGIC
A level is considered "mitigated" when price touches or crosses it:
โข PDH mitigated: High >= PDH at any point after 6:00 PM previous day
โข PDL mitigated: Low <= PDL at any point after 6:00 PM previous day
โข ONH mitigated: High >= ONH after 9:30 AM open
โข ONL mitigated: Low <= ONL after 9:30 AM open
โข Gap filled: Price crosses PDC after gapping up or down
AI SUMMARY ALGORITHM
The indicator analyzes three key dimensions:
1. GAP CLASSIFICATION
โข Large gap (>50 pts): Suggests gap-fill or extension scenarios
โข Moderate gap (20-50 pts): Monitor overnight levels for direction
โข Small gap (<20 pts): Range-bound expectation
2. PDH/PDL STATUS
โข Both untested: Clean liquidity zones
โข One mitigated: Remaining level becomes primary target
โข Both mitigated: Expect range/balance trade
3. OVERNIGHT RANGE POSITION
โข Top 25%: Bullish bias, watch PDH
โข Mid-upper: Slight bull bias
โข Mid-lower: Neutral
โข Bottom 25%: Vulnerable to PDL sweep
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ HOW TO USE
STEP 1: ADD TO CHART
โข Apply to any intraday timeframe (1m, 5m, 15m recommended)
โข Works on ES, NQ, YM, RTY, and other CME futures
โข Can be used on stocks and forex (adjust session times accordingly)
STEP 2: SET YOUR TIMEZONE
โข Default: America/New_York (Eastern Time)
โข Also supports: Chicago, Los Angeles, Phoenix
โข Ensure your chart timezone matches your selection
STEP 3: CUSTOMIZE APPEARANCE
โข Position table where it doesn't block your chart action
โข Adjust text size based on screen resolution
โข Customize colors to match your chart theme
โข Toggle line styles for visual preference
STEP 4: INTERPRET THE DATA
โข Before market open (pre-9:30 AM): Review gap size and overnight levels
โข At market open: Check which levels are closest to price
โข During session: Monitor mitigation status and RT ฮ values
โข Read AI summary for contextual bias and key scenarios
STEP 5: APPLY TO YOUR STRATEGY
โข Use unmitigated levels as potential targets
โข Watch for reactions when price approaches key levels
โข Gap-fill setups: Trade reversions when gap is open
โข Breakout setups: Trade continuations when levels get mitigated
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ๏ธ INDICATOR SETTINGS
DISPLAY SETTINGS
โข Timezone: Select your local market timezone
โข Table Position: 9 locations (corners, edges, center)
โข Text Size: tiny | small | normal | large
โข Show Summary Table: Toggle on/off
COLOR CUSTOMIZATION
โข Header Text Color: Default white
โข AI Summary Color: Default aqua
โข Background Color: Default semi-transparent black
โข Border Color: Default blue
LINE CUSTOMIZATION (PDH)
โข Line Width: 1-4 pixels
โข Line Style: Solid | Dashed | Dotted
โข Color: Default red with 40% transparency
LINE CUSTOMIZATION (PDL)
โข Line Width: 1-4 pixels
โข Line Style: Solid | Dashed | Dotted
โข Color: Default green with 40% transparency
LINE CUSTOMIZATION (PDC)
โข Line Width: 1-4 pixels
โข Line Style: Solid | Dashed | Dotted
โข Color: Default yellow with 60% transparency
LINE CUSTOMIZATION (ONH)
โข Line Width: 1-4 pixels
โข Line Style: Solid | Dashed | Dotted
โข Color: Default orange with 50% transparency
LINE CUSTOMIZATION (ONL)
โข Line Width: 1-4 pixels
โข Line Style: Solid | Dashed | Dotted
โข Color: Default blue with 50% transparency
LINE CUSTOMIZATION (9:30 Open)
โข Line Width: 1-4 pixels
โข Line Style: Solid | Dashed | Dotted
โข Color: Default white with 50% transparency
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ก BEST PRACTICES
โ Use on 1-minute or 5-minute charts for precise level tracking
โ Combine with volume profile for confluence
โ Wait for confirmation candles near key levels
โ Pay attention to gap-fill probability (larger gaps more likely to fill)
โ Use RT ฮ values to gauge distance and set realistic targets
โ Review AI summary each morning for bias and scenario planning
โ Don't trade blindly - use levels as reference points, not mechanical signals
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๏ธ IMPORTANT NOTES
โข This indicator is designed for CME session times (futures markets)
โข For stocks, session times may differ - adjust expectations accordingly
โข Levels reset daily at 6:00 PM ET - no weekend carryover
โข Mitigation tracking persists throughout the session
โข The AI summary provides context, not trade signals
โข Always use proper risk management
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ IDEAL FOR
โข Day traders focusing on market open
โข Scalpers using previous day levels
โข Session-based traders (Asia/London/NY)
โข Traders who need automated level tracking
โข Anyone trading overnight gaps and ranges
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ VERSION HISTORY
v1.0 - Initial Release
โข Core tracking system for PDH/PDL/PDC/ONH/ONL/Open
โข Real-time mitigation status
โข AI context summary
โข Fully customizable display and lines
โข Multi-timezone support
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ง FEEDBACK & SUPPORT
If you find this indicator helpful, please:
โข Leave a like ๐
โข Add to favorites โญ
โข Share with fellow traders
โข Comment with suggestions or questions
Happy trading! ๐
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
A comprehensive real-time tracking system designed for intraday traders who trade the market open using previous day levels (PDH/PDL) and overnight session ranges (ONH/ONL). This indicator provides intelligent context and mitigation tracking to help you make informed trading decisions during the critical morning session.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ WHAT THIS INDICATOR DOES
This indicator automatically tracks and displays six critical price levels:
โข PDH (Previous Day High) - Yesterday's regular session high (9:30 AM - 4:00 PM ET)
โข PDL (Previous Day Low) - Yesterday's regular session low
โข PDC (Previous Day Close) - Yesterday's 3:59 PM ET close price
โข ONH (Overnight High) - Overnight session high (6:00 PM - 9:29 AM ET)
โข ONL (Overnight Low) - Overnight session low
โข 9:30 Open - The exact opening price at market open
It monitors whether each level has been "mitigated" (touched/tested) in real-time and provides AI-generated context about current market structure.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ฏ KEY FEATURES
โ REAL-TIME MITIGATION TRACKING
โข Live status updates showing โ (mitigated) or โณ (unmitigated) for each level
โข Persistent tracking - once a level is touched, it stays marked
โข Gap fill detection with ๐ (filled) or ๐ (open) status
โ DYNAMIC CALCULATIONS
โข ฮ Open: Distance from 9:30 AM opening price to each level
โข RT ฮ: Real-time distance from current price to each level
โข Automatic color coding (green for resistance, red for support)
โ AI MARKET CONTEXT SUMMARY
The indicator generates intelligent commentary based on:
โข Gap size classification (large/moderate/small)
โข PDH/PDL mitigation status
โข Current position within overnight range
โข Directional bias and key levels to watch
โ CUSTOMIZABLE DISPLAY
โข Choose table position (9 locations available)
โข Adjustable text size (tiny/small/normal/large)
โข Custom colors for headers, summary text, and background
โข Show/hide table with single toggle
โ PROFESSIONAL LEVEL LINES
โข Ray-style horizontal lines extending right
โข Customizable line width (1-4)
โข Three line styles: Solid, Dashed, Dotted
โข Color-coded labels with exact price values
โข Lines auto-update and reset each session
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ง HOW IT WORKS
SESSION TRACKING
โข Regular Session: 9:30 AM - 4:00 PM ET (for PDH/PDL calculation)
โข Close Capture: 3:59 PM ET close becomes PDC
โข Overnight Session: 6:00 PM - 9:29 AM ET (for ONH/ONL)
โข Session Reset: 6:00 PM ET daily
MITIGATION LOGIC
A level is considered "mitigated" when price touches or crosses it:
โข PDH mitigated: High >= PDH at any point after 6:00 PM previous day
โข PDL mitigated: Low <= PDL at any point after 6:00 PM previous day
โข ONH mitigated: High >= ONH after 9:30 AM open
โข ONL mitigated: Low <= ONL after 9:30 AM open
โข Gap filled: Price crosses PDC after gapping up or down
AI SUMMARY ALGORITHM
The indicator analyzes three key dimensions:
1. GAP CLASSIFICATION
โข Large gap (>50 pts): Suggests gap-fill or extension scenarios
โข Moderate gap (20-50 pts): Monitor overnight levels for direction
โข Small gap (<20 pts): Range-bound expectation
2. PDH/PDL STATUS
โข Both untested: Clean liquidity zones
โข One mitigated: Remaining level becomes primary target
โข Both mitigated: Expect range/balance trade
3. OVERNIGHT RANGE POSITION
โข Top 25%: Bullish bias, watch PDH
โข Mid-upper: Slight bull bias
โข Mid-lower: Neutral
โข Bottom 25%: Vulnerable to PDL sweep
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ HOW TO USE
STEP 1: ADD TO CHART
โข Apply to any intraday timeframe (1m, 5m, 15m recommended)
โข Works on ES, NQ, YM, RTY, and other CME futures
โข Can be used on stocks and forex (adjust session times accordingly)
STEP 2: SET YOUR TIMEZONE
โข Default: America/New_York (Eastern Time)
โข Also supports: Chicago, Los Angeles, Phoenix
โข Ensure your chart timezone matches your selection
STEP 3: CUSTOMIZE APPEARANCE
โข Position table where it doesn't block your chart action
โข Adjust text size based on screen resolution
โข Customize colors to match your chart theme
โข Toggle line styles for visual preference
STEP 4: INTERPRET THE DATA
โข Before market open (pre-9:30 AM): Review gap size and overnight levels
โข At market open: Check which levels are closest to price
โข During session: Monitor mitigation status and RT ฮ values
โข Read AI summary for contextual bias and key scenarios
STEP 5: APPLY TO YOUR STRATEGY
โข Use unmitigated levels as potential targets
โข Watch for reactions when price approaches key levels
โข Gap-fill setups: Trade reversions when gap is open
โข Breakout setups: Trade continuations when levels get mitigated
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ๏ธ INDICATOR SETTINGS
DISPLAY SETTINGS
โข Timezone: Select your local market timezone
โข Table Position: 9 locations (corners, edges, center)
โข Text Size: tiny | small | normal | large
โข Show Summary Table: Toggle on/off
COLOR CUSTOMIZATION
โข Header Text Color: Default white
โข AI Summary Color: Default aqua
โข Background Color: Default semi-transparent black
โข Border Color: Default blue
LINE CUSTOMIZATION (PDH)
โข Line Width: 1-4 pixels
โข Line Style: Solid | Dashed | Dotted
โข Color: Default red with 40% transparency
LINE CUSTOMIZATION (PDL)
โข Line Width: 1-4 pixels
โข Line Style: Solid | Dashed | Dotted
โข Color: Default green with 40% transparency
LINE CUSTOMIZATION (PDC)
โข Line Width: 1-4 pixels
โข Line Style: Solid | Dashed | Dotted
โข Color: Default yellow with 60% transparency
LINE CUSTOMIZATION (ONH)
โข Line Width: 1-4 pixels
โข Line Style: Solid | Dashed | Dotted
โข Color: Default orange with 50% transparency
LINE CUSTOMIZATION (ONL)
โข Line Width: 1-4 pixels
โข Line Style: Solid | Dashed | Dotted
โข Color: Default blue with 50% transparency
LINE CUSTOMIZATION (9:30 Open)
โข Line Width: 1-4 pixels
โข Line Style: Solid | Dashed | Dotted
โข Color: Default white with 50% transparency
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ก BEST PRACTICES
โ Use on 1-minute or 5-minute charts for precise level tracking
โ Combine with volume profile for confluence
โ Wait for confirmation candles near key levels
โ Pay attention to gap-fill probability (larger gaps more likely to fill)
โ Use RT ฮ values to gauge distance and set realistic targets
โ Review AI summary each morning for bias and scenario planning
โ Don't trade blindly - use levels as reference points, not mechanical signals
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๏ธ IMPORTANT NOTES
โข This indicator is designed for CME session times (futures markets)
โข For stocks, session times may differ - adjust expectations accordingly
โข Levels reset daily at 6:00 PM ET - no weekend carryover
โข Mitigation tracking persists throughout the session
โข The AI summary provides context, not trade signals
โข Always use proper risk management
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ IDEAL FOR
โข Day traders focusing on market open
โข Scalpers using previous day levels
โข Session-based traders (Asia/London/NY)
โข Traders who need automated level tracking
โข Anyone trading overnight gaps and ranges
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ VERSION HISTORY
v1.0 - Initial Release
โข Core tracking system for PDH/PDL/PDC/ONH/ONL/Open
โข Real-time mitigation status
โข AI context summary
โข Fully customizable display and lines
โข Multi-timezone support
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ง FEEDBACK & SUPPORT
If you find this indicator helpful, please:
โข Leave a like ๐
โข Add to favorites โญ
โข Share with fellow traders
โข Comment with suggestions or questions
Happy trading! ๐
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Catatan Rilis
space issue updatedSkrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
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 open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
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.