OPEN-SOURCE SCRIPT
Key Levels - Prop Trader Journey

Key Levels – Prop Trader Journey (Intraday Levels + Clean Right-Side Layout)
This indicator plots session-based reference levels commonly used for intraday futures/stocks, with a focus on clean chart layout and label collision handling.
What it plots (toggle each on/off)
How levels are calculated (high level)
The script detects whether the current bar is inside RTH / Pre-Market / Opening Range / First Hour using your chosen time zone and session templates.
High/Low levels update in real time while inside each session window. Premarket levels are cached so they remain visible after premarket ends.
Weekly levels are pulled from the weekly timeframe to provide higher-timeframe context.
Display modes
Label collision handling (the “unique” part)
When multiple levels are close together, labels can overlap. This script supports:
Merge: combine nearby levels into one label within a tick threshold
Stack: show separate labels stacked vertically
Merge + Stack (4+): merge normally, but stack when there are many levels
This helps visualize confluence/stacked zones without clutter.
Customization
Every level has its own color / line style / width controls. Labels have adjustable text/bg/size, and custom levels can extend left by a user-defined number of bars.
How to use with you trade
Use these levels as reaction areas (support/resistance, rejection, breakout/retest). When labels “stack” or multiple names appear merged at similar prices, that signals confluence—often a more important zone than a single level.

This indicator plots session-based reference levels commonly used for intraday futures/stocks, with a focus on clean chart layout and label collision handling.
What it plots (toggle each on/off)
- Today’s RTH High/Low (TDH/TDL)
- Opening Range High/Low (ORH/ORL) based on the first N minutes after RTH open
- Pre-Market High/Low (PMH/PML) based on the premarket session window
- First Hour High/Low (1HH/1HL) based on the first N minutes after RTH open
- Yesterday’s RTH High/Low (YDH/YDL) captured at the next RTH open
- RTH Open price
- RTH Average line (AVG) using a selectable source (HL2 / HLC3 / OHLC4 / HLCC4)
- This Week / Last Week levels (O/H/L/C + Avg) from the weekly timeframe
- Optional Session Open level at a configurable time (default 18:00 NY)
- 2 Custom price levels (optional extend-left)
How levels are calculated (high level)
The script detects whether the current bar is inside RTH / Pre-Market / Opening Range / First Hour using your chosen time zone and session templates.
High/Low levels update in real time while inside each session window. Premarket levels are cached so they remain visible after premarket ends.
Weekly levels are pulled from the weekly timeframe to provide higher-timeframe context.
Display modes
- Compact mode: levels are drawn in a compact “right-side” layout using a configurable right offset and line length.
- Pivot mode: levels originate from the bar where the level was established/updated and extend toward the right.
Label collision handling (the “unique” part)
When multiple levels are close together, labels can overlap. This script supports:
Merge: combine nearby levels into one label within a tick threshold
Stack: show separate labels stacked vertically
Merge + Stack (4+): merge normally, but stack when there are many levels
This helps visualize confluence/stacked zones without clutter.
Customization
Every level has its own color / line style / width controls. Labels have adjustable text/bg/size, and custom levels can extend left by a user-defined number of bars.
How to use with you trade
Use these levels as reaction areas (support/resistance, rejection, breakout/retest). When labels “stack” or multiple names appear merged at similar prices, that signals confluence—often a more important zone than a single level.
Скрипт с открытым кодом
В истинном духе TradingView, создатель этого скрипта сделал его открытым исходным кодом, чтобы трейдеры могли проверить и убедиться в его функциональности. Браво автору! Вы можете использовать его бесплатно, но помните, что перепубликация кода подчиняется нашим Правилам поведения.
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.
Скрипт с открытым кодом
В истинном духе TradingView, создатель этого скрипта сделал его открытым исходным кодом, чтобы трейдеры могли проверить и убедиться в его функциональности. Браво автору! Вы можете использовать его бесплатно, но помните, что перепубликация кода подчиняется нашим Правилам поведения.
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.