OPEN-SOURCE SCRIPT
Custom Session Boundaries with Timezone Support

This indicator draws two clean vertical lines on your chart — one marking the start of your selected trading session and one marking the end. No clutter, no extra lines between them. Just the two boundaries you care about.
It is designed for traders who want a clear visual reference of their session window directly on the chart, regardless of the timezone their broker or exchange uses.
Features:
Select your Start Hour and End Hour independently (0–23 format)
Full timezone support: UTC, New York, Chicago, London, Berlin, Bucharest, Tokyo, Singapore, Sydney
Separate color control for the start and end line
Choose between Solid, Dashed, or Dotted line style
Adjustable line width (1–4)
Works on all timeframes and all instruments
How to use:
Set your desired session start and end hour in the timezone that matches your setup. The indicator will place one vertical line at the opening of the start hour and one at the opening of the end hour, across your entire chart history.
Works well for marking sessions such as London Open, New York Open, Asian Session, or any custom time window relevant to your strategy.
It is designed for traders who want a clear visual reference of their session window directly on the chart, regardless of the timezone their broker or exchange uses.
Features:
Select your Start Hour and End Hour independently (0–23 format)
Full timezone support: UTC, New York, Chicago, London, Berlin, Bucharest, Tokyo, Singapore, Sydney
Separate color control for the start and end line
Choose between Solid, Dashed, or Dotted line style
Adjustable line width (1–4)
Works on all timeframes and all instruments
How to use:
Set your desired session start and end hour in the timezone that matches your setup. The indicator will place one vertical line at the opening of the start hour and one at the opening of the end hour, across your entire chart history.
Works well for marking sessions such as London Open, New York Open, Asian Session, or any custom time window relevant to your strategy.
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.