OPEN-SOURCE SCRIPT

Key Levels Lite by ProDeskTrades

489
Key Levels Lite plots the four most important institutional price reference levels used by
professional traders, with real-time sweep tracking for each.

Levels plotted:
- PDH / PDL — Previous Day High & Low. Locked at the prior RTH session close. Most-watched daily
reference for institutional order flow.
- ORH / ORL — Opening Range High & Low. Formed during the first 15 minutes of RTH (9:30–9:45 AM ET).
Breakouts and rejections from the OR are a primary intraday setup.
- IBH / IBL — Initial Balance High & Low. Formed during the first 60 minutes of RTH (9:30–10:30 AM
ET). Wider range used to gauge session direction and extension targets.
- VWAP — Volume Weighted Average Price. Calculated from RTH open. Used by institutions as a benchmark
for execution quality and intraday bias.

How it works:
Each level is tracked bar-by-bar. When price closes beyond a level, it is marked as swept and the
sweep count increments. Lines change color on sweep so you can immediately see which levels have been
taken vs. which remain untested. During the OR and IB build windows, levels show a "building" status
until the session window closes and the level locks.

Live legend table shows each level's current price and status — active, building, or swept Nx —
updated on every bar.

Settings:
- Show/hide each level independently
- Line style: Solid, Dashed, or Dotted
- Line width: 1–4
- Table position: Top Right, Top Left, Bottom Right, Bottom Left
- Session times are configurable for non-US instruments

Best used on 1m, 5m, and 15m timeframes. Optimized for US equity index futures (ES, NQ, RTY, YM) and
their micros.

Not financial advice. Trading involves substantial risk of loss.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.