OPEN-SOURCE SCRIPT
ที่อัปเดต: Session Highs and Lows

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 FixThis 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สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน