OPEN-SOURCE SCRIPT
NQ Session Probability Map

This Pine Script indicator is a session-based probability analysis tool for NQ futures trading that helps traders identify high-probability trading opportunities by analyzing historical patterns across different market sessions.
Core Functionality:
The indicator tracks and visualizes three major trading sessions (Asian, London, and NY) and monitors how price interacts with key session levels. It uses historical data to calculate success probabilities for different trading scenarios during specific hours of the day.
Key Features:
Session Tracking - Automatically identifies and marks different trading sessions with their respective high/low levels
Probability Heatmap - Color-codes the chart background based on historical success rates for the current hour, helping traders quickly identify favorable trading windows
Level Monitoring - Tracks important price levels from previous sessions and specific hours, showing retracement probabilities
Pattern Recognition - Identifies certain price behaviors and displays their historical success rates, with special emphasis on high-probability setups
Gap Analysis - Detects price gaps at session openings and analyzes how they combine with other patterns to create enhanced opportunities
Visual Statistics - Provides a comprehensive table showing success rates across different sessions and setup types, plus real-time information about current market conditions
What Makes It Valuable:
The indicator synthesizes multiple time-based patterns and displays probability percentages based on historical performance. This allows traders to make more informed decisions about when to trade and which setups to prioritize, without revealing the specific methodology behind the probabilities.
Core Functionality:
The indicator tracks and visualizes three major trading sessions (Asian, London, and NY) and monitors how price interacts with key session levels. It uses historical data to calculate success probabilities for different trading scenarios during specific hours of the day.
Key Features:
Session Tracking - Automatically identifies and marks different trading sessions with their respective high/low levels
Probability Heatmap - Color-codes the chart background based on historical success rates for the current hour, helping traders quickly identify favorable trading windows
Level Monitoring - Tracks important price levels from previous sessions and specific hours, showing retracement probabilities
Pattern Recognition - Identifies certain price behaviors and displays their historical success rates, with special emphasis on high-probability setups
Gap Analysis - Detects price gaps at session openings and analyzes how they combine with other patterns to create enhanced opportunities
Visual Statistics - Provides a comprehensive table showing success rates across different sessions and setup types, plus real-time information about current market conditions
What Makes It Valuable:
The indicator synthesizes multiple time-based patterns and displays probability percentages based on historical performance. This allows traders to make more informed decisions about when to trade and which setups to prioritize, without revealing the specific methodology behind the probabilities.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.