OPEN-SOURCE SCRIPT
Mis à jour Sessions High/Low with Break Logic

Sessions High/Low with Break Logic – Indicator Description
Update 27.10.25
Overview
This indicator marks the highs and lows of key trading sessions (Tokyo, London, New York) and highlights when these levels are broken. It is ideal for traders using session-based strategies to monitor breakouts or support/resistance levels in real time.
Key Features
Session-Based Highs/Lows:
Tracks highs and lows for three trading sessions:
Tokyo: 02:00–09:00 (UTC+1)
London: 09:00–17:00 (UTC+1)
New York: 15:30–22:00 (UTC+1)
Break Logic:
Detects when the current price breaks a session high or low.
Labels are updated with a "Break" note when a level is breached.
Visual Display:
Draws horizontal lines for highs and lows of each session.
Adds labels with values (optionally including price).
Colors are customizable for each session:
Tokyo: Purple
London: Teal
New York: Orange
Customizable Settings:
Horizontal Offset: Shifts lines and labels horizontally for clarity.
Time Zone: Adjustable to UTC+1 (default).
Price Display: Option to show the exact price next to the label.
Settings and Translations
Display Settings
Horizontal Offset: Horizontal shift for lines and labels.
Show Price with Text: Displays the price next to the label (e.g., "London High: 123.45").
Time Settings
UTC: Time zone (default: UTC+1).
Session 1 (Tokyo)
Session 1: 02:00–09:00
High Text: "Tokyo High"
Low Text: "Tokyo Low"
High Color: Purple
Low Color: Purple
Session 2 (London)
Session 2: 09:00–17:00
High Text: "London High"
Low Text: "London Low"
High Color: Teal
Low Color: Teal
Session 3 (New York)
Session 3: 15:30–22:00
High Text: "New York High"
Low Text: "New York Low"
High Color: Orange
Low Color: Orange
Update 27.10.25
Overview
This indicator marks the highs and lows of key trading sessions (Tokyo, London, New York) and highlights when these levels are broken. It is ideal for traders using session-based strategies to monitor breakouts or support/resistance levels in real time.
Key Features
Session-Based Highs/Lows:
Tracks highs and lows for three trading sessions:
Tokyo: 02:00–09:00 (UTC+1)
London: 09:00–17:00 (UTC+1)
New York: 15:30–22:00 (UTC+1)
Break Logic:
Detects when the current price breaks a session high or low.
Labels are updated with a "Break" note when a level is breached.
Visual Display:
Draws horizontal lines for highs and lows of each session.
Adds labels with values (optionally including price).
Colors are customizable for each session:
Tokyo: Purple
London: Teal
New York: Orange
Customizable Settings:
Horizontal Offset: Shifts lines and labels horizontally for clarity.
Time Zone: Adjustable to UTC+1 (default).
Price Display: Option to show the exact price next to the label.
Settings and Translations
Display Settings
Horizontal Offset: Horizontal shift for lines and labels.
Show Price with Text: Displays the price next to the label (e.g., "London High: 123.45").
Time Settings
UTC: Time zone (default: UTC+1).
Session 1 (Tokyo)
Session 1: 02:00–09:00
High Text: "Tokyo High"
Low Text: "Tokyo Low"
High Color: Purple
Low Color: Purple
Session 2 (London)
Session 2: 09:00–17:00
High Text: "London High"
Low Text: "London Low"
High Color: Teal
Low Color: Teal
Session 3 (New York)
Session 3: 15:30–22:00
High Text: "New York High"
Low Text: "New York Low"
High Color: Orange
Low Color: Orange
Notes de version
Update – Version 2Sessions High/Low with Break Logic – V2 Hybrid
This update extends the indicator beyond the simple display of the most recent session highs and lows and introduces a configurable visualization of the current session levels as well as levels from previous sessions.
At the same time, the display can still be configured via the settings to match the behavior and appearance of earlier versions.
A new distinction has been introduced between Primary Session Levels (POS1) and Secondary Session Levels (POS2).
POS1 displays the highs and lows of the currently active session in real time, including break status. POS2 automatically takes over completed session levels at the start of the next session and displays them separately in a more compact form. This keeps important prior levels visible without cluttering the current session.
A cluster system has been integrated for both layers. Identical or closely aligned price levels can be grouped together.
Optionally, so-called near clusters can be displayed when levels lie within a defined tick distance.
Clusters are always built based on the currently visible levels.
The break filters (Broken / Unbroken) directly affect the cluster logic.
Text display is now fully configurable.
For each layer, text, price, and distance to the current candle can be shown or hidden individually.
Distance can be displayed either in points or ticks.
In addition, a compact mode for highly reduced labels is available, along with independently adjustable text sizes for POS1 and POS2.
Vertical placement has been revised.
POS1 and POS2 share a common anchor point. As soon as POS2 becomes visible, POS1 automatically shifts to the right to prevent overlap. If POS2 is disabled or empty, POS1 reverts to its default position.
The break logic has been unified and now applies consistently to both layers. Once a level is broken, its status updates dynamically and is retained even after the level is transferred to POS2.
Session time inputs were already available in previous versions.
In this update, the related settings have been reorganized into a more compact and clearer structure without changing the fundamental session behavior.
New session boxes have been added. These visualize the respective trading sessions directly on the chart.
The boxes automatically adapt to the actual session length and can be displayed as a border, fill, or a combination of both.
Optionally, the session name, day of the week, and session range in points or ticks can be shown.
Colors can be inherited automatically from the session colors or defined manually, including transparent rendering.
The added tooltips explain abbreviations and options directly within the settings, making configuration easier—especially for the compact input fields—thus improving overall usability.
Notes de version
Display Correction UpdateMinimal adjustment to resolve an issue with the TradingView update notification. This ensures that yesterday's feature updates now appear reliably on all chart instances. The script’s content remains identical to yesterday's latest version.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.