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 sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.