OPEN-SOURCE SCRIPT

Meridian Session Atlas [JOAT]

1 449
Meridian Session Atlas [JOAT]

Introduction

Meridian Session Atlas (MSA) is an open-source ICT-methodology session zone engine that renders all five major trading killzones — Asia, London, NY AM, NY Lunch, and NY PM — as live, price-tracking boxes on the chart. Each session gets its own high and low pivot lines that extend rightward until price sweeps them, a real-time session VWAP for fair-value reference, and a sweep detection system that fires when a wick pierces a session extreme and the bar closes back inside. Daily and weekly opening prices are overlaid as key reference levels. All five sessions are fully configurable: colors, time windows, and visibility can be customized independently.

The core problem MSA solves is the manual, time-consuming work of identifying and drawing session ranges each day. ICT traders use session high/low levels as primary liquidity pools — price regularly sweeps below Asia lows to grab sell-side liquidity before reversing, or above London highs to take buy-side liquidity before reversing. Identifying those sweeps in real time, across all sessions simultaneously, on a clean chart with VWAP context is what MSA automates completely.

快照

Core Concepts

1. Session Detection and State Tracking

Each of the five sessions is detected using Pine Script's time() function with the user-configured session string and timezone. A session starts when the current bar's time falls inside the session window for the first time (transition from outside to inside), and ends when it transitions back out:

Pine Script®


On session start, the high, low, left bar index, and VWAP accumulators are reset. During the session, the high and low expand with each bar. On session end, the pivot lines are drawn and extended right.

2. Killzone Boxes

Each session draws a box that expands in real time as the session progresses — the right edge and top/bottom move with each new bar's high and low. On session close, the box freezes at the final session high and low, creating a permanent visual record of that session's range. A configurable maximum history count prevents chart clutter by automatically deleting old session boxes when the count exceeds the limit.

3. Session VWAP

Volume-weighted average price accumulates from the first bar of each session. The formula uses cumulative price-volume (hl2 * volume) divided by cumulative volume, resetting at each session start:

Pine Script®


The VWAP is plotted as a line only during the active session, breaking between sessions. It represents the institutional fair-value level within each killzone — institutional order flow frequently uses the VWAP as an equilibrium reference.

4. Liquidity Sweep Detection

A sweep is detected when price wicks through a session's pivot high or low and then closes back inside. The logic applies a minimum depth filter (default 0.1 ATR) to eliminate trivial tag-and-return moves, an optional body filter to confirm directional close bias, and a cooldown period to prevent multiple signals from the same sweep:

Pine Script®


A bullish sweep fires when price wicks below the session low and closes back above it — this is the ICT buy-side liquidity grab pattern. A bearish sweep fires when price wicks above the session high and closes back below — the sell-side liquidity grab. All five sessions are monitored simultaneously.

5. Daily and Weekly Opens

The opening price of each new trading day and each new trading week is plotted as a horizontal line extending rightward. These levels represent the most important institutional reference prices of their respective periods — the daily open divides the day into a bullish (above) or bearish (below) context, and the weekly open does the same for the week.

Features

  • Five Independent Killzone Boxes: Asia, London, NY AM, NY Lunch, and NY PM each rendered as live price-tracking boxes with individual color, time, and visibility settings
  • Session Pivot Lines: High and low pivot lines extend from each completed session's extreme until price sweeps through them, providing persistent liquidity pool reference
  • Configurable Line Style: Pivot lines can be Solid, Dashed, or Dotted with adjustable width (1-3)
  • Five Session VWAPs: Real-time volume-weighted average price plotted for each active session in its respective color
  • Sweep Signal Labels: Bull and bear sweep labels fire at the bar where the wick/close confirmation occurs, sized Tiny, Small, or Normal, with the session name embedded in the label
  • Sweep Depth Filter: Minimum wick depth in ATR multiples prevents noise from triggering false sweep signals
  • Body Confirmation Filter: Optional close-in-upper/lower-half confirmation strengthens sweep signal quality
  • Sweep Cooldown: Configurable bar count prevents multiple signals from the same sweep event
  • Daily and Weekly Open Lines: Dotted (configurable) horizontal lines at the current day and week open prices
  • Timeframe Gate: All indicator elements automatically hide when the chart timeframe exceeds a configurable threshold — prevents the indicator from rendering on timeframes where session boxes are too compressed to be useful
  • Session History: Configurable maximum number of completed sessions to keep on chart (1-8 per killzone)
  • 9-Row Dashboard (Top Right): Active session name with color, session highs and lows for all five sessions, daily open price, current timeframe, and version
  • Watermark: JackOfAllTrades signature at chart center-bottom
  • Sweep Alerts: Separate bull and bear sweep alertconditions with plain-text or JSON webhook format


Input Parameters

Main Settings:
  • Timezone: Exchange or broker timezone for session alignment (default: America/New_York)
  • Hide Above Timeframe: Chart TF at which indicator elements hide (default: 60-minute)
  • Session History: Number of completed sessions to keep per killzone (default: 3)


Killzones (each session has identical controls):
  • Enable toggle, session name, session time string, and color — fully independent per session
  • Default sessions: Asia 20:00-00:00, London 02:00-05:00, NY AM 09:30-11:00, NY Lunch 12:00-13:00, NY PM 13:30-16:00 (all in New York time)


Session Pivots:
  • Show Session Pivot Lines toggle
  • Show Session VWAP toggle
  • Pivot Line Style: Solid, Dashed, or Dotted
  • Pivot Line Width: 1-3


Sweep Signals:
  • Show Sweep Signals toggle
  • Min Sweep Depth (ATR x): Minimum wick depth as a multiple of ATR (default: 0.1)
  • Cooldown Bars: Minimum bars between sweep signals (default: 3)
  • Body Confirmation: Close must be in directional half of the candle body (default: enabled)
  • Signal Size: Tiny, Small, or Normal (default: Small)


How to Use This Indicator

Step 1: Identify the Active Session
The dashboard shows the current active session in its color. The live session box is expanding in real time. This gives immediate context for whether you are in a high-liquidity killzone or off-session dead time.

Step 2: Monitor Session Extremes for Liquidity Pools
Completed session highs and lows are the primary liquidity pools that ICT methodology targets. These are the levels where institutional order flow is placed — above previous highs (buy-side liquidity) and below previous lows (sell-side liquidity).

Step 3: React to Sweep Signals
When a sweep label appears, price has hunted a session extreme and rejected it. A bull sweep (below a session low, close back above) represents a sell-side liquidity grab and potential long entry opportunity. A bear sweep (above a session high, close back below) represents a buy-side liquidity grab and potential short entry opportunity. Confirm with higher-timeframe bias and session VWAP position.

Step 4: Use Session VWAP as Fair Value
Price above the active session VWAP is trading at a premium within that session. Price below is at a discount. ICT concepts suggest looking for longs from discount (below VWAP after a bullish sweep) and shorts from premium (above VWAP after a bearish sweep).

Step 5: Reference Daily and Weekly Opens
The daily open is the most important intraday reference level. Price holding above the daily open is a bullish intraday context. Sweeps of the daily open low with a close recovery signal potential long opportunities.

快照

Indicator Limitations

  • Session times are fixed to the timezone input. On instruments that trade across midnight or on non-standard sessions, the default session strings may need manual adjustment
  • The timeframe gate hides the indicator above the configured threshold. On timeframes above that threshold, none of the visual elements render — intentional behavior to prevent meaningless session boxes on, for example, a daily chart
  • VWAP calculation uses hl2 (average of high and low) multiplied by volume. On indices, synthetic instruments, or assets with unreliable volume data, the VWAP reading will not be accurate
  • Sweep detection uses bar close as the confirmation. Intrabar wicks that would constitute sweeps but then recover within the same bar are captured; wicks that close beyond the pivot are not classified as sweeps (they become the new session extreme)
  • Session history has a maximum of 8 completed sessions per killzone. On very long charts or after major gaps, the oldest session data is automatically removed


Originality Statement

MSA is original in its simultaneous, automated management of five independent session zones with unified sweep detection and VWAP integration. This indicator is published because:

  • The integration of five simultaneous, independently configurable session zones — each with its own box, pivot lines, VWAP, and sweep detection — into a single, performance-efficient indicator is uncommon. Most session-zone indicators handle only one or two sessions
  • The sweep detection algorithm applies three independent confirmation layers (ATR depth filter, body filter, cooldown) simultaneously across all five sessions, with a unified aggregated signal that names the originating session
  • The session VWAP calculation resets correctly at each session boundary (not at day boundary), providing a genuine intra-killzone fair-value reference rather than a daily VWAP approximation
  • The timeframe gate is a usability feature that prevents the indicator from rendering meaninglessly on timeframes where session granularity is lost


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 high and low levels are historical reference points — price does not respect these levels in all market conditions, and sweep signals do not guarantee continuation in any direction. ICT methodology concepts described here represent one school of technical analysis and are not universally accepted. Always use proper risk management. The author is not responsible for any trading losses resulting from the use of this indicator.

-Made with passion by jackofalltrades

免責聲明

這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。