OPEN-SOURCE SCRIPT
AlgoSentry Opening Range Breakout [Non-Repaint]

The Opening Range is the high and low of the first minutes of a session. This indicator maps that range and then tracks the classic Break -> Retest -> Trend sequence that opening-range traders watch — built non-repaint from the ground up.
How it works
Once your opening window closes, the range high and low freeze. From there the script tracks three events:
• Break — the first candle to CLOSE beyond the frozen range, confirmed on the timeframe you choose (chart, 5m, 10m, or 15m). Higher confirmation = fewer fakeouts, later signal.
• Retest — the first pullback that taps an enabled zone: the broken edge, a percent level inside the range, or the session volume Point of Control.
• Trend — the first re-close beyond the range after the retest, marking continuation.
Why non-repaint matters here
Most "breakout" tools look perfect on history because they quietly use future data or redraw as you scroll. This one does not:
• The range freezes at session close and never moves.
• The volume Point of Control is computed once, over a fixed time window — no visible-range tricks, so it never shifts when you scroll or zoom.
• Every signal is committed on bar close.
• Higher-timeframe confirmation is read only after the higher-timeframe candle has closed (lookahead off).
What you saw in real time is what stays on the chart.
Settings
• Opening range session and timezone (default 09:30-09:45, exchange time).
• Confirmation timeframe for the breakout.
• Three retest zones — broken edge, percent of range, and volume Point of Control — each can be toggled on or off.
• Volume POC window: the opening range itself, or the full trading day.
• A compact dashboard shows session state, range size, the live Break/Retest/Trend state, the confirmation timeframe, and the volume POC level.
Every parameter is an input, and every filter can be turned on or off, so you can adapt the tool to your own market and style. It is designed for index futures on intraday charts (1-5 minute), but works on any symbol — validate it on your own instrument and timeframe before relying on it.
A note on honesty
Opening-range breakout is a well-known, widely-published concept. This tool does not invent an edge or promise results — it gives you a clean, disciplined, non-repaint way to see the sequence and study how it actually behaves on your charts.
Educational and informational use only. This is not financial advice, and nothing here is a recommendation to buy or sell. Past or hypothetical behavior does not predict future results. Always test thoroughly before trading.
How it works
Once your opening window closes, the range high and low freeze. From there the script tracks three events:
• Break — the first candle to CLOSE beyond the frozen range, confirmed on the timeframe you choose (chart, 5m, 10m, or 15m). Higher confirmation = fewer fakeouts, later signal.
• Retest — the first pullback that taps an enabled zone: the broken edge, a percent level inside the range, or the session volume Point of Control.
• Trend — the first re-close beyond the range after the retest, marking continuation.
Why non-repaint matters here
Most "breakout" tools look perfect on history because they quietly use future data or redraw as you scroll. This one does not:
• The range freezes at session close and never moves.
• The volume Point of Control is computed once, over a fixed time window — no visible-range tricks, so it never shifts when you scroll or zoom.
• Every signal is committed on bar close.
• Higher-timeframe confirmation is read only after the higher-timeframe candle has closed (lookahead off).
What you saw in real time is what stays on the chart.
Settings
• Opening range session and timezone (default 09:30-09:45, exchange time).
• Confirmation timeframe for the breakout.
• Three retest zones — broken edge, percent of range, and volume Point of Control — each can be toggled on or off.
• Volume POC window: the opening range itself, or the full trading day.
• A compact dashboard shows session state, range size, the live Break/Retest/Trend state, the confirmation timeframe, and the volume POC level.
Every parameter is an input, and every filter can be turned on or off, so you can adapt the tool to your own market and style. It is designed for index futures on intraday charts (1-5 minute), but works on any symbol — validate it on your own instrument and timeframe before relying on it.
A note on honesty
Opening-range breakout is a well-known, widely-published concept. This tool does not invent an edge or promise results — it gives you a clean, disciplined, non-repaint way to see the sequence and study how it actually behaves on your charts.
Educational and informational use only. This is not financial advice, and nothing here is a recommendation to buy or sell. Past or hypothetical behavior does not predict future results. Always test thoroughly before trading.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
AlgoSentry · Quant Auditor
8-Test Robustness Methodology · We audit trading strategies before traders deploy them.
In-sample lies. Out-of-sample is the truth.
→ algosentry.com
8-Test Robustness Methodology · We audit trading strategies before traders deploy them.
In-sample lies. Out-of-sample is the truth.
→ algosentry.com
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.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
AlgoSentry · Quant Auditor
8-Test Robustness Methodology · We audit trading strategies before traders deploy them.
In-sample lies. Out-of-sample is the truth.
→ algosentry.com
8-Test Robustness Methodology · We audit trading strategies before traders deploy them.
In-sample lies. Out-of-sample is the truth.
→ algosentry.com
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.