OPEN-SOURCE SCRIPT
Cập nhật SessionStack Pro 24h MarketMap for ES

Session Highlighter + Key Levels — All-in-One 24h Trading Reference
This indicator consolidates everything a 24h futures trader needs into a single overlay — session context, key price levels, VWAP reference, and an overnight inventory bias estimate.
Sessions (background highlights)
Visualizes all major global trading sessions with configurable colors and transparency: Full Asia (23:00–08:00 GMT), Tokyo (00:00–06:00 GMT), HK/Singapore (01:00–09:00 GMT), Frankfurt (07:00–15:30 GMT), London (08:00–16:30 GMT), London/NY Overlap (dynamically computed — 1h in winter, 2h in summer due to DST), US AM and US PM windows (configurable 1h or 1.5h). All GMT-anchored sessions are DST-immune. US sessions use America/New_York timezone and adjust automatically twice a year.
Key Price Levels
PMH/PML — Premarket High/Low (04:00–09:30 ET), line anchored to the exact bar where the extreme was set
YH/YL — Yesterday's RTH High/Low, drawn at next session open
GH/GL — Globex High/Low (18:00–09:30 ET), anchored to the extreme bar
SH/SL — Live session High/Low, single label that moves as new extremes are set
MO — Midnight Open (00:00 ET), ICT-style daily bias reference
ORB H/L — Opening Range Breakout (configurable 5/15/30 min), with range box
VWAP (three anchors)
Globex VWAP — resets at 18:00 ET, runs full 24h cycle, primary reference
RTH VWAP — resets at 09:30 ET, visible only during regular session
Premarket VWAP — resets at 04:00 ET, visible only during premarket window
Overnight Inventory Bias Table
A real-time table estimating the directional skew of overnight participants using Globex VWAP as fair value anchor and ±1 standard deviation bands as a Value Area High/Low proxy (approximating the 70% value area concept from volume profile theory). Displays: directional bias (LONG/SHORT), value area position (IN VALUE / ABOVE VAH / BELOW VAL), estimated % of overnight range in profit, distance from Globex VWAP in points, and the ±1SD width for context. This is a heuristic approximation — it does not use tick-by-tick order flow data, but provides a statistically grounded directional reference updated on every bar.
Settings
All sessions, levels, and VWAPs are individually toggleable. Colors, transparency, line width, ORB window, US AM/PM duration, and table position are fully configurable.
Designed for: ES, NQ, MES, MNQ futures and any instrument with meaningful overnight sessions. Works on any intraday timeframe (1m–4h recommended).
This indicator consolidates everything a 24h futures trader needs into a single overlay — session context, key price levels, VWAP reference, and an overnight inventory bias estimate.
Sessions (background highlights)
Visualizes all major global trading sessions with configurable colors and transparency: Full Asia (23:00–08:00 GMT), Tokyo (00:00–06:00 GMT), HK/Singapore (01:00–09:00 GMT), Frankfurt (07:00–15:30 GMT), London (08:00–16:30 GMT), London/NY Overlap (dynamically computed — 1h in winter, 2h in summer due to DST), US AM and US PM windows (configurable 1h or 1.5h). All GMT-anchored sessions are DST-immune. US sessions use America/New_York timezone and adjust automatically twice a year.
Key Price Levels
PMH/PML — Premarket High/Low (04:00–09:30 ET), line anchored to the exact bar where the extreme was set
YH/YL — Yesterday's RTH High/Low, drawn at next session open
GH/GL — Globex High/Low (18:00–09:30 ET), anchored to the extreme bar
SH/SL — Live session High/Low, single label that moves as new extremes are set
MO — Midnight Open (00:00 ET), ICT-style daily bias reference
ORB H/L — Opening Range Breakout (configurable 5/15/30 min), with range box
VWAP (three anchors)
Globex VWAP — resets at 18:00 ET, runs full 24h cycle, primary reference
RTH VWAP — resets at 09:30 ET, visible only during regular session
Premarket VWAP — resets at 04:00 ET, visible only during premarket window
Overnight Inventory Bias Table
A real-time table estimating the directional skew of overnight participants using Globex VWAP as fair value anchor and ±1 standard deviation bands as a Value Area High/Low proxy (approximating the 70% value area concept from volume profile theory). Displays: directional bias (LONG/SHORT), value area position (IN VALUE / ABOVE VAH / BELOW VAL), estimated % of overnight range in profit, distance from Globex VWAP in points, and the ±1SD width for context. This is a heuristic approximation — it does not use tick-by-tick order flow data, but provides a statistically grounded directional reference updated on every bar.
Settings
All sessions, levels, and VWAPs are individually toggleable. Colors, transparency, line width, ORB window, US AM/PM duration, and table position are fully configurable.
Designed for: ES, NQ, MES, MNQ futures and any instrument with meaningful overnight sessions. Works on any intraday timeframe (1m–4h recommended).
Phát hành các Ghi chú
v1.1 — Bug FixesFixed an issue where Session High (SH) and Session Low (SL) lines would occasionally render as a vertical line instead of a horizontal one. This occurred when a new extreme was set on the current bar, causing the line's start and end coordinates to be identical. Lines now always have distinct x1/x2 coordinates and extend correctly to the right.
Phát hành các Ghi chú
v1.2 — Bug Fixes & ImprovementsFixed Opening Range Breakout (ORB) not triggering reliably — replaced function history operator with explicit state tracking variable
Removed ORB box border to prevent it from obscuring candle wicks — fill remains for visual context
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.