OPEN-SOURCE SCRIPT
Session Candles (3 Sessions)

This indicator displays three custom trading sessions as individual candles directly on your chart, plus a live sidebar view to the right of the last bar for quick reference.
It is inspired by Daily Volume Profile [Amtrades] made by apiyada_inversion.
Sessions covered (all times EST):
Session 1: 18:00 – 01:00 (Asian session)
Session 2: 01:00 – 08:00 (London session)
Session 3: 08:00 – 14:00 (New York session)
How it works:
Each session candle starts forming at its open time and freezes when the session closes. The sidebar candles appear one by one as each session begins — at 18:00 only S1 is visible, at 01:00 S2 is added, at 08:00 S3 is added. When the next cycle starts at 18:00, the board resets.
Take / Sweep detection:
Red dotted lines automatically appear on the sidebar candles when a later session takes out the high or low of an earlier session. This helps instantly identify liquidity sweeps and session range breaks.
Features:
Sidebar candles positioned to the right of the last bar, updating live
Individual bull/bear/wick color controls for each session
Adjustable sidebar candle width, gap and offset
Optional OHLC labels on overlay candles
All times handled automatically for EST
Best used on intraday timeframes: 5m, 15m, 1H.
It is inspired by Daily Volume Profile [Amtrades] made by apiyada_inversion.
Sessions covered (all times EST):
Session 1: 18:00 – 01:00 (Asian session)
Session 2: 01:00 – 08:00 (London session)
Session 3: 08:00 – 14:00 (New York session)
How it works:
Each session candle starts forming at its open time and freezes when the session closes. The sidebar candles appear one by one as each session begins — at 18:00 only S1 is visible, at 01:00 S2 is added, at 08:00 S3 is added. When the next cycle starts at 18:00, the board resets.
Take / Sweep detection:
Red dotted lines automatically appear on the sidebar candles when a later session takes out the high or low of an earlier session. This helps instantly identify liquidity sweeps and session range breaks.
Features:
Sidebar candles positioned to the right of the last bar, updating live
Individual bull/bear/wick color controls for each session
Adjustable sidebar candle width, gap and offset
Optional OHLC labels on overlay candles
All times handled automatically for EST
Best used on intraday timeframes: 5m, 15m, 1H.
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.