OPEN-SOURCE SCRIPT
Range Box (Manual Bar Index)

Here’s a clear and public-facing description of your **Range Box with Manual Bar Index** tool for TradingView, written for traders of all experience levels:
---
### 📦 Range Box (with Manual Bar Selection)
**Description:**
The **Range Box with Manual Bar Index** is a visual tool designed for traders who want to **analyze historical price action** with precision. Rather than relying on live, real-time data only, this version allows you to **manually select any past bar** on your chart to display detailed range metrics for that specific candle.
---
### 🔍 Features:
* **Manual Bar Selection:** Input the bar index (distance from the most recent candle) to inspect.
* **Range Metrics Displayed:**
* **Range:** High - Low of the selected bar
* **Average Range:** Calculated over a customizable lookback period
* **ATR Multiples:** Shows 1.5× and 2× ATR values for volatility comparison
* **Customizable Positioning:** Text box can be offset on the X (bars) and Y (price) axis for visibility
* **Color-Coded Alerts:** Highlights if the range exceeds normal behavior based on ATR multipliers
---
### 🛠 Use Cases:
* Identify **unusual volatility** in prior bars
* Study historical **breakout ranges** or compression candles
* Train your eye to spot **institutional-sized bars** versus average price action
* Prep screenshots for analysis, reports, or educational posts
---
### 📌 How to Use:
1. Add the script to your chart
2. Set the **"Bar Index"** to the number of bars back you want to analyze (e.g., `0` = current, `1` = one bar ago)
3. The script will draw a **box around the candle**, and display key range info nearby
---
Would you like a copy-and-paste version of this for TradingView's Public Library description or script header?
---
### 📦 Range Box (with Manual Bar Selection)
**Description:**
The **Range Box with Manual Bar Index** is a visual tool designed for traders who want to **analyze historical price action** with precision. Rather than relying on live, real-time data only, this version allows you to **manually select any past bar** on your chart to display detailed range metrics for that specific candle.
---
### 🔍 Features:
* **Manual Bar Selection:** Input the bar index (distance from the most recent candle) to inspect.
* **Range Metrics Displayed:**
* **Range:** High - Low of the selected bar
* **Average Range:** Calculated over a customizable lookback period
* **ATR Multiples:** Shows 1.5× and 2× ATR values for volatility comparison
* **Customizable Positioning:** Text box can be offset on the X (bars) and Y (price) axis for visibility
* **Color-Coded Alerts:** Highlights if the range exceeds normal behavior based on ATR multipliers
---
### 🛠 Use Cases:
* Identify **unusual volatility** in prior bars
* Study historical **breakout ranges** or compression candles
* Train your eye to spot **institutional-sized bars** versus average price action
* Prep screenshots for analysis, reports, or educational posts
---
### 📌 How to Use:
1. Add the script to your chart
2. Set the **"Bar Index"** to the number of bars back you want to analyze (e.g., `0` = current, `1` = one bar ago)
3. The script will draw a **box around the candle**, and display key range info nearby
---
Would you like a copy-and-paste version of this for TradingView's Public Library description or script header?
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
Bullish above, bearish below. No thinking.
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
Bullish above, bearish below. No thinking.
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。