OPEN-SOURCE SCRIPT
Better Sessions [CantoLab]

This session indicator plots Asia, London and New York sessions, with 3 extra fully customisable sessions. Includes sweep detection to automatically track if price has swept session highs/lows, and a visual dashboard to identify overlapping sessions.
Features :
Sessions
Up to 6 sessions can be configured with custom times, colors and labels. By default the indicator comes set to Asia, London and NY stock exchange timings. The 3 additional sessions can be set to anything.
A common use case is replicating ICT killzones by adjusting the session times in settings to London[0200-0500], NY-AM[0800-1100], NY-PM[1300-1630], Asia[18:00-21:00]
The overlapping window between London and New York is highlighted automatically in the dashboard, signifying the period of potential high volume and volatility traders watch closely.
Sweep Detection
On session close, lines are drawn automatically from the session high and low. They extend forward bar by bar and mark as swept the moment price crosses them. No manual drawing or monitoring needed.
Daily Dividers
Vertical lines at each day boundary to separate trading days.
Settings:
Notes:
Features :
Sessions
Up to 6 sessions can be configured with custom times, colors and labels. By default the indicator comes set to Asia, London and NY stock exchange timings. The 3 additional sessions can be set to anything.
A common use case is replicating ICT killzones by adjusting the session times in settings to London[0200-0500], NY-AM[0800-1100], NY-PM[1300-1630], Asia[18:00-21:00]
The overlapping window between London and New York is highlighted automatically in the dashboard, signifying the period of potential high volume and volatility traders watch closely.
Sweep Detection
On session close, lines are drawn automatically from the session high and low. They extend forward bar by bar and mark as swept the moment price crosses them. No manual drawing or monitoring needed.
Daily Dividers
Vertical lines at each day boundary to separate trading days.
Settings:
- Sessions — toggle, time, color and label per session
- Sweep Detection — toggle in settings (off by default)
- CE Line — session equilibrium/midpoint, toggle in settings
- Daily Dividers — toggle, color, style and width
- Session Table — 24hr overlap dashboard, 9 position options
- Label Size — Tiny / Small / Normal / Large
Notes:
- Best used on timeframes at or below 1 hour
- Sweep lines reset at the start of each new day
- UTC offset applies globally — adjust manually for DST
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.