OPEN-SOURCE SCRIPT

Pro Levels & Zones [MTE]

1 264
Pro Levels & Zones [MTE]

An intraday futures overlay that combines pivot-based supply and demand zones with multi-session key levels and a confluence-based signal filter. The core idea is that zones alone generate too many potential entries — by requiring alignment across multiple independent factors before labeling a zone touch, the indicator filters out low-conviction setups and highlights where several references converge.


HOW IT WORKS

Supply & Demand Zone Detection
Zones are built from 60-minute pivot highs and pivot lows using a 3-bar left / 3-bar right pivot structure. When a pivot high is confirmed, the area between the candle's high and the top of its body becomes a supply zone (red). When a pivot low is confirmed, the area between the candle's low and the bottom of its body becomes a demand zone (green). Zones extend forward in real time and are automatically removed when price closes beyond the zone boundary or when the zone exceeds a configurable age limit (default: 500 bars). Only the 3 most recent zones per side are kept to avoid chart clutter.

Confluence Scoring (signal filter)
When price enters a fresh (unused) zone, the indicator checks up to 5 independent factors before printing a signal:
1. Volume delta direction — estimated from the bar's close position within its range. A buy signal requires positive delta; a sell signal requires negative delta.
2. VWAP proximity — whether price is near the session VWAP (within 0.15% of current price).
3. Key level proximity — whether price is near a relevant prior-session level (PDH, PDL, PMH, PML).
4. POC proximity — whether price is near the intraday volume Point of Control.
5. VWAP trend bias — whether price is on the "right side" of VWAP for the signal direction (buy below VWAP, sell above).

Each matching factor adds 1 to the score. The signal label displays the count (e.g., "Buy 4/5") so traders can see at a glance how many factors aligned. A configurable cooldown (default: 12 bars) prevents repeated signals in the same area. An additional filter requires bearish candle close for sells and bullish candle close for buys.

Note: The confluence score is simply a count of how many factors happen to align at the moment of zone contact. A higher count does not predict or guarantee a successful trade. It is a filtering tool, not a performance metric.


SESSION LEVELS & KEY LEVELS

The indicator tracks and displays levels from multiple sessions:
- London session high/low — plotted as live-updating steplines during the session, then held after session close.
- Asia session high/low — same behavior, off by default.
- Key levels drawn as dashed horizontal lines: Previous Day High/Low/Close (PDH/PDL/PDC), Pre-Market High/Low (PMH/PML), Previous Week High/Low (PWH/PWL), Overnight High/Low (ONH/ONL), and the RTH Opening Print. All are off by default and individually toggleable.

Previous day and week values use request.security() with a [1] offset and lookahead_on, which is the standard method to reference the prior completed period without future data leakage.


ADDITIONAL TOOLS (all off by default)

- VWAP — standard session-anchored VWAP using ohlc4 as source.
- POC — intraday volume Point of Control calculated by distributing each bar's volume into a 100-bin histogram across the RTH price range, then finding the bin with the highest accumulated volume. Resets daily.
- Fair Value Gaps — bullish and bearish imbalances detected when a gap exists between bar[0]'s low and bar[2]'s high (or vice versa), filtered by a minimum percentage size (default: 0.15%). FVGs auto-expire after 40 bars. Maximum 6 active FVGs.
- Opening Range — plots the RTH opening range as a box (15 or 30 minute, configurable). Extends through the session.


WHY THIS COMBINATION

Most zone-based approaches generate signals every time price touches a zone, regardless of context. This indicator addresses that by requiring zone contact AND directional volume AND candle confirmation before printing anything, then layering additional context (VWAP, key levels, POC) as a visible confluence count. The result is fewer signals that occur only at zones where multiple independent references happen to converge.

The session levels (London, Asia, pre-market, overnight) are included because futures often react at session boundaries, and having them as toggleable overlays avoids needing separate indicators cluttering the chart.


HOW TO USE

1. Apply to a 1-15 minute intraday futures chart (defaults tuned for NQ on 5 min).
2. Adjust "Min Zone Size" for your instrument (NQ: 20-50 pts, ES: 5-15 pts).
3. Watch for Buy/Sell labels at zone touches. Higher confluence counts (4/5, 5/5) mean more factors aligned — use your own judgment on whether the context supports a trade.
4. Toggle key levels on/off depending on which session references matter to your trading approach.
5. All features are independently toggleable. Start with zones + signals, then add levels as needed.


DEFAULT SETTINGS

- Zones: ON, min size 20 pts, max age 500 bars
- Signals: ON, cooldown 12 bars, volume delta confirmation ON
- London session levels: ON
- All other levels and tools: OFF


LIMITATIONS

- Volume delta is estimated from bar close position within range — it is not true order flow data.
- POC uses a 100-bin histogram which is an approximation, not tick-level volume profile.
- Confluence scoring counts factor alignment but does not predict outcomes. Past confluence patterns do not guarantee future results.
- Zone detection has a 3-bar lag due to pivot confirmation.
- Designed for futures instruments. Adjust zone size settings for other markets.

Exención de responsabilidad

La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.