PROTECTED SOURCE SCRIPT

OPR 4 Zones

64
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.

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。