PROTECTED SOURCE SCRIPT
Actualizado Opening Range Gaps [LEG]

📌 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.
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.
Notas de prensa
DOWNGRADE TO PINESCRIPT V5 TO ALLOW SHOW ORG ON SECONDS, I HOPE THIS IS BETTER FOR YOU.Notas de prensa
last fixNotas de prensa
Small fix, on the ORG extensionNotas de prensa
Now, if there is no 9:30 candle on futures, it uses the 9:29 candle to avoid errors.Notas de prensa
Added new customization menuScript protegido
Este script se publica como código cerrado. No obstante, puede utilizarlo libremente y sin ninguna limitación. Obtenga más información aquí.
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 o de otro tipo proporcionadas o respaldadas por TradingView. Más información en Condiciones de uso.
Script protegido
Este script se publica como código cerrado. No obstante, puede utilizarlo libremente y sin ninguna limitación. Obtenga más información aquí.
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 o de otro tipo proporcionadas o respaldadas por TradingView. Más información en Condiciones de uso.