PROTECTED SOURCE SCRIPT
Trading Sessions

Trading Sessions
Highlights the Asia, London, and New York trading sessions with dynamic High-Low boxes.
General
- Timezone: select your reference zone (e.g. Exchange, UTC, Europe/Rome, America/New_York).
- Extend Session High/Low: extend the High/Low lines to the last candle.
- Extend Lines (bars): number of bars to extend lines beyond the last candle (0–100, default 15).
- Show High/Low Labels: display labels for the High/Low levels.
- Show Mitigated Levels: also show mitigated (broken) levels.
- Show Only Recent Levels: filter levels from the last N days.
- Number of Recent Days: sets how many days are considered “recent” (1–30).
- Show Debug Info: enable a panel with current time, session status, and active filters.
Sessions
- Asia, London, New York: enable or disable each session.
- Session Time: set the start/end times with the time picker.
- Box Color: choose a semi-transparent highlight color for each session.
- Line Style & Width: customize style (Solid, Dotted, Dashed) and width of current and past High/Low lines.
- Text Size: select the label text size (Tiny, Small, Normal, Large).
- Show Only Recent Levels – filters High/Low lines to show only those from the last Number of Recent Days.
- Number of Recent Days – sets how many days are considered “recent” for the filter.
- Show Mitigated Levels – enables display of broken levels; otherwise only active levels remain visible.
- Show High/Low Labels – toggles text labels at the ends of lines on or off.
- Show Debug Info – displays a floating panel showing:
- Current time in the selected timezone
- On/Off status of Asia, London, NY sessions
- Active filters (recent days, mitigated levels)
- Line style settings for each session
- Current time in the selected timezone
Key Benefits
- Visualize session-specific volatility and potential breakouts.
- No historical limit: scroll back through any past sessions.
- Filter and extend High/Low levels for precise price context.
- Fully customize to fit any chart layout.
Ideal For
- Intraday traders who need clear session boundaries and price level context.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.