OPEN-SOURCE SCRIPT
Session Range Box

Generic Session Box
Generic Session Box is a lightweight and customizable tool designed to visualize price ranges within user-defined trading sessions.
This indicator automatically draws a dynamic box that tracks the High and Low formed during a selected session period. The box updates in real time while the session is active and preserves historical session ranges for visual reference and analysis.
🔹 Features
⚙️ How It Works
The indicator monitors price activity during the selected session and dynamically builds a range box from the session High and Low. Once the session ends, the box is preserved as part of the historical session dataset.
🎯 Typical Use Cases
This tool is intended for visual and analytical purposes only and does not provide trading signals.
━━━━━━━━━━━━━━━━━━━━
🌎 Descripción (Español)
Generic Session Box es una herramienta configurable que permite visualizar el rango de precios generado dentro de sesiones de trading definidas por el usuario.
El indicador dibuja automáticamente una caja que representa el máximo y mínimo alcanzado durante la sesión seleccionada, actualizándose en tiempo real mientras la sesión está activa y conservando el historial de sesiones anteriores.
Generic Session Box is a lightweight and customizable tool designed to visualize price ranges within user-defined trading sessions.
This indicator automatically draws a dynamic box that tracks the High and Low formed during a selected session period. The box updates in real time while the session is active and preserves historical session ranges for visual reference and analysis.
🔹 Features
- Fully customizable session time range
- Timezone selection support
- Real-time session High/Low tracking
- Automatic historical session storage
- Adjustable maximum number of displayed boxes
- Customizable box colors and borders
- Efficient performance and memory management
⚙️ How It Works
The indicator monitors price activity during the selected session and dynamically builds a range box from the session High and Low. Once the session ends, the box is preserved as part of the historical session dataset.
🎯 Typical Use Cases
- Identifying session volatility zones
- Monitoring breakout levels
- Comparing session ranges across days
- Supporting intraday trading strategies
This tool is intended for visual and analytical purposes only and does not provide trading signals.
━━━━━━━━━━━━━━━━━━━━
🌎 Descripción (Español)
Generic Session Box es una herramienta configurable que permite visualizar el rango de precios generado dentro de sesiones de trading definidas por el usuario.
El indicador dibuja automáticamente una caja que representa el máximo y mínimo alcanzado durante la sesión seleccionada, actualizándose en tiempo real mientras la sesión está activa y conservando el historial de sesiones anteriores.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。