OPEN-SOURCE SCRIPT

Session Confluence Tracker [JOAT]

912
Session Confluence Tracker

Introduction

The Session Confluence Tracker is an open-source overlay indicator that monitors the Asian, London, and New York trading sessions simultaneously, tracking each session's high and low, counting consecutive bullish or bearish sessions (streaks), detecting overstretch conditions, and identifying confluence zones where multiple sessions share overlapping price levels. It gives traders a structured view of how liquidity develops across the global trading day and where institutional interest is concentrating.

Built with Pine Script v6, the indicator uses custom types for session data, streak tracking, confluence zones, session momentum, session gaps, and session pivots.

cuplikan

Why This Indicator Exists

Session-based analysis is a cornerstone of institutional trading. Different sessions have distinct characteristics — the Asian session often establishes a range, London tends to break that range, and New York frequently continues or reverses the London move. However, most session indicators simply draw boxes around session times. This indicator goes further by:

  • Streak analysis: Counts how many consecutive sessions have been bullish or bearish, revealing directional persistence that simple session boxes cannot show
  • Overstretch detection: Compares the current session's range to its historical average. When a session extends significantly beyond its norm (configurable ratio, default 1.5x), it flags a potential exhaustion point
  • Confluence detection: Identifies price levels where two or more sessions share overlapping highs or lows within a configurable tolerance, highlighting zones of multi-session institutional agreement
  • Session momentum: Tracks the directional strength within each session, not just whether it closed up or down
  • Gap detection: Monitors gaps between session closes and opens, which often act as magnets for price


Core Components Explained

1. Multi-Session Tracking

The indicator tracks three configurable sessions with default times aligned to major global markets:

  • Asian Session: Default 1800-0300 (EST) — typically the lowest volatility, range-setting session
  • London Session: Default 0300-1130 (EST) — the highest volume session, often sets the daily direction
  • New York Session: Default 0800-1600 (EST) — overlaps with London for the most liquid period of the day


Each session is tracked independently with its own high, low, open, close, and volume data. Session boundaries are drawn as colored boxes on the chart, and session highs/lows extend as horizontal lines until the next session begins.

2. Streak Analysis

The streak engine counts consecutive bullish (close > open) or bearish (close < open) sessions for each market. This reveals directional persistence that is invisible on a standard chart:

Pine Script®


When a streak reaches the minimum threshold (default 3 consecutive sessions), it is highlighted on the chart. Long streaks in a single direction often precede reversals, while the start of a new streak can confirm a trend change.

3. Overstretch Detection

Overstretch occurs when a session's range significantly exceeds its historical average. The indicator calculates the average session range over a lookback period and compares the current session's range against it:

  • Overstretch ratio >= 1.5x: The session has extended well beyond its norm — potential exhaustion
  • Overstretch ratio >= 2.0x: Extreme extension — high probability of mean reversion


Overstretch signals are plotted as markers above or below the session, giving traders a visual warning that the session may be running out of steam.

Chart showing three session boxes (Asian in purple, London in blue, New York in green) with streak counts displayed, overstretch markers on an extended London session, and confluence zones where session levels overlap

4. Confluence Zone Detection

When the high or low of one session falls within a configurable ATR-based tolerance of another session's high or low, the indicator identifies a confluence zone. These zones represent price levels where multiple sessions have found significant support or resistance:

Pine Script®


Confluence zones are drawn as highlighted horizontal bands on the chart. The strength of the confluence (how many sessions agree) determines the visual intensity. A zone where all three sessions share a similar level is considered the strongest form of multi-session agreement.

5. Session Momentum and Gaps

Session momentum measures the directional conviction within each session using the relationship between the close and the session's range. A session that closes near its high has strong bullish momentum; one that closes near its low has strong bearish momentum.

Session gaps — the difference between one session's close and the next session's open — are tracked and visualized. These gaps often act as magnets, with price tending to fill them during the subsequent session.

Visual Elements

  • Session Boxes: Colored boxes marking each session's time range and price range
  • Session High/Low Lines: Horizontal lines extending from each session's extremes
  • Streak Labels: Counts displayed at session boundaries showing consecutive bullish/bearish sessions
  • Overstretch Markers: Warning signals when a session extends beyond its historical norm
  • Confluence Zones: Highlighted bands where multiple sessions share price levels
  • Session Gaps: Visual markers showing gaps between session close and next session open
  • Background Coloring: Subtle session-based background tinting
  • Dashboard: Real-time display of each session's status, streak counts, overstretch ratios, and confluence strength


cuplikan

Input Parameters

Session Settings:
  • Toggle each session (Asian, London, New York) independently
  • Custom session times for each market
  • Custom colors for each session


Streak Detection:
  • Min Streak Count (default 3): Minimum consecutive sessions to highlight
  • Overstretch Ratio (default 1.5): Threshold for overstretch detection


Confluence Detection:
  • Confluence Tolerance (ATR-based, default 0.5): How close session levels must be to count as confluent
  • Min Confluence Strength (default 2): Minimum number of agreeing sessions


Advanced Features:
  • Show Session Momentum, Volume Profile, Gaps, Pivots


Visual Settings:
  • Max Days Back (default 5): Limit historical session display for performance
  • Show Session Boxes, Dashboard, Glow Effects, Pulse Effects, Gradient Fill, Confluence Animation
  • Timezone selection


How to Use This Indicator

Step 1: At the start of your trading day, review the Asian session range. This range often defines the battlefield for London and New York. Note the Asian high and low as key levels.

Step 2: As London opens, watch for a break of the Asian range. A decisive break with volume often sets the daily direction. Check the streak count — if London has been bullish for 4+ consecutive sessions, be cautious of a reversal.

Step 3: Monitor overstretch conditions. If London extends 1.5x or more beyond its average range, the move may be exhausted. This is especially relevant if the overstretch occurs at a confluence zone.

Step 4: Look for confluence zones. A price level where the Asian high aligns with a previous London low is a zone of multi-session institutional interest. These levels often produce strong reactions.

Step 5: During New York, check for session gaps from the London close. Price frequently fills these gaps early in the New York session.

Step 6: Use the dashboard for a quick overview of all sessions, streaks, and confluence strength.

Dashboard view showing Asian, London, and New York session statistics including streak counts, overstretch ratios, momentum readings, and confluence strength score

Indicator Limitations

  • Session times are based on exchange time or a configurable timezone. Ensure your timezone setting matches your intended market hours.
  • Streak analysis requires sufficient historical data. On newly listed instruments or very high timeframes, streak counts may be limited.
  • Overstretch detection uses historical averages, which can be skewed by outlier sessions (e.g., major news events).
  • Confluence zones are based on proximity of session levels, not on the reason those levels formed. Not all confluences will produce reactions.
  • The indicator is most useful on intraday timeframes (1m to 1H) where session boundaries are meaningful. On daily or weekly charts, session tracking is less relevant.
  • Session overlap periods (London/New York) can produce complex price action that is harder to attribute to a single session.


Originality Statement

This indicator is original in its multi-session analytical framework. While session boxes and session high/low indicators exist, this indicator is justified because:

  • Streak analysis across multiple sessions provides a directional persistence metric not available in standard session tools
  • Overstretch detection compares current session range to historical norms, adding a statistical dimension to session analysis
  • Multi-session confluence detection identifies price levels where institutional interest from different global markets converges
  • Session momentum tracking quantifies the directional conviction within each session, going beyond simple bullish/bearish classification
  • Gap tracking between sessions highlights potential price magnets that standard session indicators ignore
  • The unified dashboard presents all three sessions' metrics simultaneously for rapid cross-session analysis


Disclaimer

This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss. Session analysis is a framework for understanding market structure across time zones, not a guarantee of future price movement. Always use proper risk management. The author is not responsible for any losses incurred from using this indicator.

-Made with passion by officialjackofalltrades

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.