OPEN-SOURCE SCRIPT
Zaktualizowano

Session Highs and Lows

359
Shows the current and previous session highs and lows for the New York, London and Asian sessions
Informacje o Wersji
Session highs and lows for Asian, London and New York sessions, carried through to the next session.
Informacje o Wersji
Session highs and lows for Asian, London and New York sessions. Limits are extended forward until they are breached by price.
Informacje o Wersji
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.
Informacje o Wersji
🕒 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.
Informacje o Wersji

  • 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
Informacje o Wersji
Fixes for Daylight Savings Time in New York and London

Wyłączenie odpowiedzialności

Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.