OPEN-SOURCE SCRIPT

Range Box (Manual Bar Index)

34
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?

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.