OPEN-SOURCE SCRIPT
Opening Range Breakout

This indicator tracks the high and low of a configurable opening window (default: the first 15 minutes of the US cash session) and draws those levels for the rest of the trading day.
How it works
During the opening window, the running high and low are recorded. Once the window closes, both levels are drawn until the end of the day. The first confirmed close above the range high (or below the range low) is marked as a breakout — one signal per direction per day — and matching alert conditions are included. The window highlight, markers and colors are configurable, and the session time is interpreted in a selectable timezone (exchange time by default), so daylight-saving shifts are handled automatically.
Notes and limitations
Works on intraday timeframes only. A close beyond the range is a description of what happened, not a prediction: opening-range breakouts fail regularly, and the tool intentionally does not attempt to filter "good" from "bad" breakouts. Combine it with your own analysis of context, volume and risk.
How it works
During the opening window, the running high and low are recorded. Once the window closes, both levels are drawn until the end of the day. The first confirmed close above the range high (or below the range low) is marked as a breakout — one signal per direction per day — and matching alert conditions are included. The window highlight, markers and colors are configurable, and the session time is interpreted in a selectable timezone (exchange time by default), so daylight-saving shifts are handled automatically.
Notes and limitations
Works on intraday timeframes only. A close beyond the range is a description of what happened, not a prediction: opening-range breakouts fail regularly, and the tool intentionally does not attempt to filter "good" from "bad" breakouts. Combine it with your own analysis of context, volume and risk.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.