OPEN-SOURCE SCRIPT
Mis à jour

Session Highs and Lows

362
Shows the current and previous session highs and lows for the New York, London and Asian sessions
Notes de version
Session highs and lows for Asian, London and New York sessions, carried through to the next session.
Notes de version
Session highs and lows for Asian, London and New York sessions. Limits are extended forward until they are breached by price.
Notes de version
This indicator tracks and visualizes the high and low boundaries of the Asian, London, and New York trading sessions — with a unique twist: it preserves unbreached levels across sessions for strategic reference.

🔍 Key Features
Session Detection (UTC-4): Automatically identifies active sessions based on local time conversion.

Dynamic High/Low Tracking: Updates session highs and lows in real-time while the session is active.

Breach Logic: Once a session high or low is breached, it’s invalidated and hidden — preserving only untouched levels.

Carry-Over Visualization: Unbreached highs/lows persist into future sessions, offering potential support/resistance zones.

Bold vs. Thin Lines: Active session levels are plotted with bold lines; persistent levels use thinner lines for clarity.

🧠 Strategic Utility
Spot potential liquidity zones and reaction levels from prior sessions.

Use carry-over levels to anticipate breakout traps or retest setups.

Combine with your existing strategy to enhance session-based confluence.

🎨 Color Coding
Asian Session: Yellow

London Session: Blue

New York Session: Red

Whether you're trading intraday volatility or studying market structure across sessions, this tool gives you a clean, modular way to track session dynamics with breach-aware logic.
Notes de version
🕒 Session Highs and Lows (Carry Over) — Timezone-Aware Fix
This update resolves a critical limitation in the original session logic: hardcoded UTC-5 session boundaries that ignored the exchange's actual timezone. We've refactored the code to dynamically convert UTC-5 session times into exchange-local timestamps using timestamp("Etc/GMT+5", ...), ensuring accurate session detection across all markets.

✅ What’s Fixed:
Timezone mismatch eliminated — session boundaries now adapt to the exchange’s timezone (syminfo.timezone), making the logic portable and reliable.

Robust timestamp conversion — session times (e.g., 0930 for NY open) are converted into full timestamps anchored in UTC-5, then compared against time, which reflects the chart’s native timezone.

Cleaner logic — session state detection (is_asian, is_london, is_ny) now works seamlessly across assets and exchanges.
Notes de version

  • Account for Daylight Savings Time in London and New York by setting those session times based on local time.
  • Add labels to session highs and lows
Notes de version
Fixes for Daylight Savings Time in New York and London

Clause de non-responsabilité

Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.