OPEN-SOURCE SCRIPT
Futures Key Levels

Key Levels — Sessions, Previous Ranges & Opens (Chicago-aligned sessions)
What it does
This indicator plots commonly used reference levels across multiple timeframes to help you frame the day and find confluence:
Sessions (Chicago TZ): London, New York, and Asia session high/low ranges.
Previous Period Ranges: Previous Day / Week / Month / Quarter / Year High/Low and optional Mid.
Opens: Current Daily / Weekly / Monthly / Quarterly / Yearly opens.
Intraday (4H): Previous 4-Hour High/Low + optional Mid.
Monday Range: Captures Monday’s High/Low (and optional Mid) to use as a weekly reference.
Price-scale markers: Optional markers that track key levels on the price scale without adding extra lines.
How it works (concepts & calculations)
Higher-timeframe values are retrieved using request.security() and update when a new period begins (e.g., previous day’s H/L become fixed at the start of the new day).
Session ranges are built from bar data within session windows using time(session, "America/Chicago"):
London: 02:00–05:00 CT
New York: 08:30–15:00 CT
Asia: 20:00–00:00 CT
“Mid” levels are simple midpoints between each period’s High and Low.
Merge Levels: when different levels land at the same price, their labels are merged to reduce clutter (e.g., “PDH / PWH”).
Why this version is useful / original bits
All-white baseline for clean charts; session colors stand out by design: London = Yellow, New York = Aquatic Blue, Asia = Red.
Right-anchored mode lets you park levels to the right side of the chart with a configurable anchor distance.
Label merging keeps the display minimal when multiple levels coincide.
Price-scale-only markers available when you prefer fewer lines on the chart.
Inputs & customization
Display Style: Standard or Right Anchored (+ distance controls).
Levels toggles: enable/disable each period (Daily/Weekly/Monthly/Quarterly/Yearly), Monday range, 4H range, and session ranges.
Text: optional shorthand labels (e.g., PDH/PDL, PWH/PWL).
Colors: global white theme, with session highlights; you can override in the Inputs.
Price-scale markers: on/off toggle.
How to use it
Use previous High/Low as liquidity pools and areas to watch for sweeps, breaks, or retests.
The Monday range often frames the rest of the week; breaks or rejections around Monday H/L can be informative.
The 4H previous range gives intraday context—great for mean-reversion vs. continuation reads.
Session ranges help you see where the active session expanded price and where liquidity may remain.
Notes & limitations
Sessions are computed in America/Chicago; higher-TF levels use the symbol’s exchange timezone.
This is an indicator, not a strategy; it does not place trades or claim performance.
Always combine levels with your own execution rules (structure, momentum, risk).
Credit: inspired by spacemanBTC; this version adds the all-white styling, Chicago-aligned sessions, right-anchoring, label merging, and price-scale markers.
Also my mentor to tell me about the levels
Disclaimer
This tool is for educational purposes only and is not financial advice. Markets involve risk; do your own research and manage risk appropriately.
What it does
This indicator plots commonly used reference levels across multiple timeframes to help you frame the day and find confluence:
Sessions (Chicago TZ): London, New York, and Asia session high/low ranges.
Previous Period Ranges: Previous Day / Week / Month / Quarter / Year High/Low and optional Mid.
Opens: Current Daily / Weekly / Monthly / Quarterly / Yearly opens.
Intraday (4H): Previous 4-Hour High/Low + optional Mid.
Monday Range: Captures Monday’s High/Low (and optional Mid) to use as a weekly reference.
Price-scale markers: Optional markers that track key levels on the price scale without adding extra lines.
How it works (concepts & calculations)
Higher-timeframe values are retrieved using request.security() and update when a new period begins (e.g., previous day’s H/L become fixed at the start of the new day).
Session ranges are built from bar data within session windows using time(session, "America/Chicago"):
London: 02:00–05:00 CT
New York: 08:30–15:00 CT
Asia: 20:00–00:00 CT
“Mid” levels are simple midpoints between each period’s High and Low.
Merge Levels: when different levels land at the same price, their labels are merged to reduce clutter (e.g., “PDH / PWH”).
Why this version is useful / original bits
All-white baseline for clean charts; session colors stand out by design: London = Yellow, New York = Aquatic Blue, Asia = Red.
Right-anchored mode lets you park levels to the right side of the chart with a configurable anchor distance.
Label merging keeps the display minimal when multiple levels coincide.
Price-scale-only markers available when you prefer fewer lines on the chart.
Inputs & customization
Display Style: Standard or Right Anchored (+ distance controls).
Levels toggles: enable/disable each period (Daily/Weekly/Monthly/Quarterly/Yearly), Monday range, 4H range, and session ranges.
Text: optional shorthand labels (e.g., PDH/PDL, PWH/PWL).
Colors: global white theme, with session highlights; you can override in the Inputs.
Price-scale markers: on/off toggle.
How to use it
Use previous High/Low as liquidity pools and areas to watch for sweeps, breaks, or retests.
The Monday range often frames the rest of the week; breaks or rejections around Monday H/L can be informative.
The 4H previous range gives intraday context—great for mean-reversion vs. continuation reads.
Session ranges help you see where the active session expanded price and where liquidity may remain.
Notes & limitations
Sessions are computed in America/Chicago; higher-TF levels use the symbol’s exchange timezone.
This is an indicator, not a strategy; it does not place trades or claim performance.
Always combine levels with your own execution rules (structure, momentum, risk).
Credit: inspired by spacemanBTC; this version adds the all-white styling, Chicago-aligned sessions, right-anchoring, label merging, and price-scale markers.
Also my mentor to tell me about the levels
Disclaimer
This tool is for educational purposes only and is not financial advice. Markets involve risk; do your own research and manage risk appropriately.
Скрипт с открытым кодом
В истинном духе TradingView автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения.
Отказ от ответственности
Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.
Скрипт с открытым кодом
В истинном духе TradingView автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения.
Отказ от ответственности
Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.