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.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。