OPEN-SOURCE SCRIPT
ICT Session Candle Counter

ICT Session Candle Counter
Counts and displays the number of candles from the start of each trading session and ICT killzone directly on the chart. Each candle is labeled with its sequential number within the active session, making it easy to track session progress and identify key candle counts at a glance.
Sessions & Hours (preset to make things easier)
Session Hours and Timezone
Tokyo (TSE): 09:00 – 15:25 [Asia/Tokyo (JST)]
London (LSE): 08:00 – 16:30 [Europe/London (GMT/BST)]
New York (NYSE): 09:30 – 16:00 [America/New_York (EST/EDT)]
Killzone Hours and Timezone
Tokyo KZ: 09:00 – 12:00 [Asia/Tokyo (JST)]
London KZ: 07:00 – 10:00 [Europe/London (GMT/BST)]
New York KZ: 08:00 – 11:00 [America/New_York (EST/EDT)]
Session hours sourced from tradinghours.com. Timezones auto-adjust for DST where applicable.
Features
Recommended use
Best suited for intraday timeframes (1m – 1h). Note: Pine Script limits labels to 500 per indicator — on very low timeframes with all sessions enabled, the oldest labels may be removed automatically.
Counts and displays the number of candles from the start of each trading session and ICT killzone directly on the chart. Each candle is labeled with its sequential number within the active session, making it easy to track session progress and identify key candle counts at a glance.
Sessions & Hours (preset to make things easier)
Session Hours and Timezone
Tokyo (TSE): 09:00 – 15:25 [Asia/Tokyo (JST)]
London (LSE): 08:00 – 16:30 [Europe/London (GMT/BST)]
New York (NYSE): 09:30 – 16:00 [America/New_York (EST/EDT)]
Killzone Hours and Timezone
Tokyo KZ: 09:00 – 12:00 [Asia/Tokyo (JST)]
London KZ: 07:00 – 10:00 [Europe/London (GMT/BST)]
New York KZ: 08:00 – 11:00 [America/New_York (EST/EDT)]
Session hours sourced from tradinghours.com. Timezones auto-adjust for DST where applicable.
Features
- Sequential candle count labels on each bar for all 3 sessions and 3 ICT killzones
- Display Mode: show counts for all sessions on the chart or only the most recent one (Last Only)
- Trim Overlaps: automatically stops plotting the earlier session's count when the next session begins (Tokyo → London → New York), preventing overlapping labels
- Per session/killzone configurable label position (Above Bar / Below Bar), text size (tiny to huge), and text color
- Individual visibility toggles for each session and killzone
Recommended use
Best suited for intraday timeframes (1m – 1h). Note: Pine Script limits labels to 500 per indicator — on very low timeframes with all sessions enabled, the oldest labels may be removed automatically.
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.