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에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.