PROTECTED SOURCE SCRIPT
OPR 4 Zones

The OPR 4-Zone Boxes indicator visualizes four distinct market sessions on your chart by automatically drawing boxed ranges (high / low) and dotted midlines for each session. Each session box is created using time-based timestamps (timezone-aware) and updates in real time during the session. When the session closes, the box is locked to the session end, while an optional extension can display the session range for a configurable period afterward — useful for spotting retests, breakouts, and bias zones.
Designed for traders who rely on session structure and price-action, OPR 4-Zone provides clear, non-intrusive visuals and is fully configurable: enable or disable individual sessions, set start/end and extension times per session, choose colors and transparency for both the primary box and the extension, and display dotted midlines to quickly gauge session control. Objects are cleaned up at the start of each new day to prevent clutter and ensure reliable behavior when scrolling or changing timeframes.
Key features :
- Four independent session boxes (Morning, Afternoon, Evening, Night) with separate enable switches
- Timezone-aware timestamping so boxes align with the session times you want
- Locked session ranges at session close and optional extension period after close
- Dotted midline for quick reference to the session midpoint
- Customizable colors and background transparency for both base and extended boxes
- Automatic cleanup of session objects on new trading day to avoid frozen or stray boxes
- Lightweight and overlay-friendly with sensible defaults for fast setup
Suggested usage :
Use the indicator to mark session ranges for intraday support/resistance, identify where price is trading relative to session midpoint, and watch for breakout or rejection setups near session highs/lows. Combine with volume-based or momentum indicators to confirm breakouts through the session box.
Designed for traders who rely on session structure and price-action, OPR 4-Zone provides clear, non-intrusive visuals and is fully configurable: enable or disable individual sessions, set start/end and extension times per session, choose colors and transparency for both the primary box and the extension, and display dotted midlines to quickly gauge session control. Objects are cleaned up at the start of each new day to prevent clutter and ensure reliable behavior when scrolling or changing timeframes.
Key features :
- Four independent session boxes (Morning, Afternoon, Evening, Night) with separate enable switches
- Timezone-aware timestamping so boxes align with the session times you want
- Locked session ranges at session close and optional extension period after close
- Dotted midline for quick reference to the session midpoint
- Customizable colors and background transparency for both base and extended boxes
- Automatic cleanup of session objects on new trading day to avoid frozen or stray boxes
- Lightweight and overlay-friendly with sensible defaults for fast setup
Suggested usage :
Use the indicator to mark session ranges for intraday support/resistance, identify where price is trading relative to session midpoint, and watch for breakout or rejection setups near session highs/lows. Combine with volume-based or momentum indicators to confirm breakouts through the session box.
Script protégé
Ce script est publié en source fermée. Toutefois, vous pouvez l'utiliser librement et sans aucune restriction - en savoir plus ici.
Clause de non-responsabilité
Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script protégé
Ce script est publié en source fermée. Toutefois, vous pouvez l'utiliser librement et sans aucune restriction - en savoir plus ici.
Clause de non-responsabilité
Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.