PROTECTED SOURCE SCRIPT

Opening Range Gaps [LEG]

17
📌 Opening Range Gaps [LEG]

Are you tired of indicators that don’t show the correct opening price on CFDs, or that fail to capture the true 09:30 open or the 16:14 on Nasdaq futures?
Or worse… tools that only work on the 1-minute chart?

👉 This script was built to fix that.

🔑 Why this indicator?

Unlike most gap tools, Opening Range Gaps [LEG]:

Works seamlessly on both CFDs and Futures for Nasdaq.

Captures the exact 16:14 close (the CFD session end) and the true 09:30 open using M1 data aggregation, even if you’re on a higher timeframe.

Works reliably on any intraday timeframe — not just the 1-minute chart, but all the way up to the timeframe you set in the Timeframe Limit (default: 30m).

⚙️ Features:

Gap Detection with Precision

Uses the close of the 16:14 bar (last CFD session minute) as the reference.

Captures the specific open at 09:30 (not approximated by session).

Plots the gap as a shaded box with customizable colors.

Quarter Levels Inside the Gap

Automatically divides the gap into 25%, 50%, and 75% levels for precision trading.

Customization

Show/hide vertical session delimitations.

Choose whether to track the reference price throughout the session.

Extend boxes to the right for context.

Keep only the last “n” gaps on your chart (default: 10).

Works Across Timeframes
Thanks to request.security_lower_tf, all logic is based on 1-minute data, so even if you’re on 5m, 15m, or 30m, the gap will always plot with exact levels.

🧭 Use Cases

Spot the true overnight gap between CFD close (16:14) and futures open (09:30).

Track how Nasdaq fills (or fails to fill) gaps during the day.

Use quarter levels for partial fills, rejection points, or continuation setups.

Combine with ICT concepts or price action strategies to identify liquidity-driven moves.

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.