PROTECTED SOURCE SCRIPT
15 M ORB

A timeframe-independent Opening Range Breakout indicator that builds the 15-minute OR (or any custom duration) from the start of a defined session and keeps the levels visible until the session closes.
What it does:
* Uses a user-defined trading session (default 15:30–22:00 CET).
* Starts the OR window based on time offset from the session open (e.g. 0 minutes).
* Tracks High and Low during the OR window and calculates the midpoint (ORB MID).
* Draws a filled box for the OR window if enabled.
* Extends High, Low, and optional Mid lines from the end of the OR window until the session ends.
* Adds customizable labels (ORB HIGH, MID, LOW) with adjustable X/Y offsets.
* Freezes all drawings at session end and resets automatically at the next session.
Main inputs:
* Session (Berlin): defines the active trading session.
* OR window: offset from session open and duration in minutes.
* Box styling: fill color, opacity, border color, and width.
* Lines: High/Low visibility, color, width, and style (solid, dashed, dotted).
* Mid line: separate control for color, width, and style.
* Labels: custom text, color, size, and position offsets.
Logic overview:
1. Detects when the defined session starts and ends.
2. During the OR window, continuously updates the session’s High and Low.
3. When the window closes, it locks these levels, computes the midpoint, and draws the box, lines, and labels.
4. Lines extend dynamically until session close, after which all drawings remain fixed until the next session.
This indicator is for visual analysis only and does not generate trade signals or execute trades.
What it does:
* Uses a user-defined trading session (default 15:30–22:00 CET).
* Starts the OR window based on time offset from the session open (e.g. 0 minutes).
* Tracks High and Low during the OR window and calculates the midpoint (ORB MID).
* Draws a filled box for the OR window if enabled.
* Extends High, Low, and optional Mid lines from the end of the OR window until the session ends.
* Adds customizable labels (ORB HIGH, MID, LOW) with adjustable X/Y offsets.
* Freezes all drawings at session end and resets automatically at the next session.
Main inputs:
* Session (Berlin): defines the active trading session.
* OR window: offset from session open and duration in minutes.
* Box styling: fill color, opacity, border color, and width.
* Lines: High/Low visibility, color, width, and style (solid, dashed, dotted).
* Mid line: separate control for color, width, and style.
* Labels: custom text, color, size, and position offsets.
Logic overview:
1. Detects when the defined session starts and ends.
2. During the OR window, continuously updates the session’s High and Low.
3. When the window closes, it locks these levels, computes the midpoint, and draws the box, lines, and labels.
4. Lines extend dynamically until session close, after which all drawings remain fixed until the next session.
This indicator is for visual analysis only and does not generate trade signals or execute trades.
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由且不受任何限制地使用它 — 在此處了解更多資訊。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由且不受任何限制地使用它 — 在此處了解更多資訊。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。