OPEN-SOURCE SCRIPT
已更新

Session Highs and Lows

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

  • 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
版本注释
Fixes for Daylight Savings Time in New York and London

免责声明

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.