OPEN-SOURCE SCRIPT

Trading Sessions Suite [BackQuant]

2 075
Trading Sessions Suite [BackQuant]

Overview
Trading Sessions Suite is a full intraday structure framework built around market sessions, kill zones, and session-specific order flow. It transforms the trading day into a sequence of structured regimes, allowing you to track how liquidity, volatility, and positioning evolve across Asia, London, and New York.

Instead of treating price as a continuous stream, this indicator segments the market into time-based auction phases, each with its own:
  • Range (high and low)
  • VWAP (fair value)
  • Open (reference anchor)
  • Equilibrium (midpoint)
  • Momentum (session oscillator)


It also overlays kill zones, highlighting the exact windows where volatility and participation tend to expand.

Example of kill zones in action:
スナップショット

Example combining RSI-style oscillator + VWAP structure:
スナップショット

This tool is designed for traders who want to understand how intraday structure builds, shifts, and resolves.

---

Core Philosophy
Markets are not random throughout the day. Liquidity, volatility, and institutional participation are time-dependent.

Each session has distinct characteristics:
  • Asia → accumulation, compression, range-building
  • London → expansion, breakout, liquidity grabs
  • New York → continuation, distribution, reversal potential


Rather than using static indicators, this script builds a dynamic framework tied to these time regimes.

---

Session Engine

The indicator tracks three primary sessions:
  • Asia Session
  • London Session
  • New York Session


Each session is defined by a configurable time window and processed as an independent structure.

Internally, each session maintains a full state:
  • Session high and low
  • Session open
  • Rolling VWAP
  • Start index (session start)
  • Drawn objects (box, lines, labels)
  • Oscillator data (if enabled)


This allows each session to behave like a self-contained market environment.

---

Session Boxes (Auction Structure)

Each session is visualized as a box:
  • Top = session high
  • Bottom = session low
  • Width = duration of the session


This gives you an immediate view of:
  • Range expansion vs compression
  • Relative volatility between sessions
  • Where price is positioned within each session


Interpretation:
  • Tight box → compression, buildup
  • Wide box → expansion, active participation
  • Overlapping boxes → consolidation across sessions


---

Session VWAP (Fair Value per Session)

Each session has its own VWAP:
  • VWAP = volume-weighted average price within that session only


This is critical because:
  • VWAP resets every session
  • Reflects session-specific positioning
  • Acts as a dynamic equilibrium level


Interpretation:
  • Price above VWAP → bullish control for that session
  • Price below VWAP → bearish control
  • Reversion to VWAP → mean reversion inside session


Unlike standard VWAP, this gives you multiple fair value anchors per day.

---

Session Open & Midline (Key References)

Each session also tracks:
  • Open Line → where the session started
  • Midline → (high + low) / 2


These act as:
  • Bias indicators (above/below open)
  • Equilibrium zones (midline)
  • Reaction levels


Typical behavior:
  • Holding above open → trend continuation
  • Crossing midline → shift in control
  • Rejecting midline → continuation signal


---

Range Extension (Forward Liquidity Levels)

When a session closes, its high and low can be extended forward.

These extensions act as:
  • Future support/resistance
  • Liquidity targets
  • Breakout validation zones


Mechanically:
  • High and low are projected into the next session
  • Remain until replaced or invalidated


Interpretation:
  • Next session often trades toward previous session extremes
  • Breaks of prior session range = regime shift


---

Kill Zones (High-Probability Windows)

Kill zones are specific time windows inside sessions where:
  • Liquidity spikes
  • Volatility expands
  • Institutional activity increases


Included zones:
  • Asia Kill Zone
  • London Open Kill Zone
  • New York Open Kill Zone
  • New York Close Kill Zone


They are visualized as shaded boxes separate from session boxes.

Why they matter:
  • Most breakouts occur during kill zones
  • Most reversals are initiated during kill zones
  • Liquidity sweeps cluster around these times


From the example:
スナップショット

You can see how price reacts specifically within these windows.

---

Session Oscillator (Embedded Momentum Engine)

Each session optionally includes its own oscillator plotted directly below the session box.

This is not a standard indicator overlay. It is:
  • Bound to the session range
  • Scaled relative to that session
  • Reset each session


Core mechanics:
  • Uses RSI-style calculation
  • Signal line = moving average of oscillator
  • Stored per bar within the session


Displayed as:
  • A mini panel under each session
  • With 30 / 50 / 70 reference levels


Example:
スナップショット

Interpretation:
  • Above 50 → bullish momentum within session
  • Below 50 → bearish momentum
  • 30/70 → oversold/overbought zones


This gives you contextual momentum, not global momentum.

---

Why Session-Based Oscillators Matter

Standard oscillators ignore time segmentation.

This approach:
  • Resets momentum every session
  • Prevents carryover noise
  • Aligns signals with actual trading windows


So instead of:
  • “RSI is overbought”


You get:
  • “RSI is overbought within London session”


This is a much stronger contextual signal.

---

Labels & Range Statistics

Each session can display:
  • Session name (ASIA, LON, NY)
  • Range percentage


This helps quantify:
  • How much the market moved during that session
  • Which session is dominating volatility


---

Putting It All Together

This indicator gives you a full intraday map:

  • Where price moved (session boxes)
  • Where fair value sits (VWAP)
  • Where equilibrium lies (midline)
  • Where momentum stands (oscillator)
  • Where volatility expands (kill zones)
  • Where liquidity rests (extended highs/lows)


---

How to Use It

1) Identify the current session
Always start with:
  • Which session is active?


Each session behaves differently.

---

2) Use VWAP + midline for bias
  • Above VWAP + above mid → strong trend
  • Below VWAP + below mid → bearish control
  • Between → range


---

3) Watch kill zones for setups
  • Breakouts during kill zones are higher probability
  • Fake moves often occur just before them


---

4) Track previous session levels
  • Asia high/low often targeted during London
  • London extremes often targeted during NY


---

5) Use oscillator for confirmation
  • Momentum aligning with structure → stronger signal
  • Divergence → potential reversal


---

Strengths
  • Fully contextual intraday framework
  • Combines time, price, and volume-weighted logic
  • Visual and intuitive
  • Highly configurable


---

Summary
Trading Sessions Suite converts the trading day into a structured sequence of auctions. By combining session ranges, VWAP, kill zones, and a session-specific momentum engine, it provides a complete framework for understanding how price moves throughout the day. Instead of relying on static indicators, it aligns analysis with when liquidity actually enters the market, allowing for more precise timing, better context, and cleaner trade execution.

免責事項

これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。