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. اقرأ المزيد في شروط الاستخدام.