OPEN-SOURCE SCRIPT

Opening Range {basic}

102
Introduction
Opening range {basic} is a clean and reliable indicator designed to help traders visualize the opening range of a trading session with minimal setup and visual clutter.

This version focuses on the core components of opening range analysis, making it ideal for traders who want a simple, effective framework for identifying early-session structure across futures, forex and crypto markets.

Description
The indicator automatically calculates the opening range high, low and midpoint over a user-defined opening window (5m, 15m, 30m or 60m) within a selected trading session (default: NY session).

During the opening range window, the indicator dynamically tracks price to form the range. Once the opening range is complete, the high, low and midpoint are extended forward for the remainder of the session, providing clear reference levels that can be used for bias, mean reversion or breakout-based decision making.

A shaded fill highlights the opening range area, with an optional size display showing the total range in price units. Styling and logic are intentionally simplified to keep the chart clean and easy to interpret.

Features
Configurable opening range length
Choose between 5m, 15m, 30m or 60m opening ranges.

Session-based calculation
Opening range is calculated only within the selected trading session.

Opening range levels
Opening range high, low and midpoint.

Range fill & size display
  • Shaded fill between the opening range high and low.
  • Text showing total opening range size.

Clean, minimal design
  • Fixed line styles and thickness for clarity.
  • Dark and light theme support.
  • Minimal settings for fast, intuitive use.

Optimized performance
Designed for intraday timeframes compatible with the selected opening range length.

Terms & Conditions
  • This indicator is provided for educational and informational purposes only and does not constitute financial advice.
  • Trading involves risk and past performance is not indicative of future results.
  • The user assumes full responsibility for any trading decisions made using this indicator.

Thông báo miễn trừ trách nhiệm

Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.