OPEN-SOURCE SCRIPT

High-Low Range % – poslední 2 periody

194
Here’s a ready-to-use **English description** for publishing your script on TradingView:

---

## 📈 **High-Low Range % – Last 2 Periods**

This indicator calculates and visualizes the **percentage range** between the **High and Low** of the last **two closed periods** (daily, weekly, or monthly – user selectable).

### 🔍 Features:

* Displays the **High–Low range in %** for each of the **two most recent completed candles**.
* **Highlights** the range label if it exceeds a user-defined threshold (e.g., 10%).
* Allows switching between **daily, weekly, or monthly** timeframe bases.
* User controls for:

* Range threshold
* Label color (normal and highlighted)
* Label text size
* Vertical label offset above the High

### ⚙️ Inputs:

* **Timeframe**: Select between `"D"`, `"W"`, or `"M"` to define the range period.
* **Threshold (%)**: If the range exceeds this value, the label changes color.
* **Highlight Color**: Color for ranges above the threshold.
* **Normal Color**: Color for ranges below the threshold.
* **Text Size**: Tiny → Huge label size.
* **Offset**: Distance in ticks to place the label above the period's High.

### 🖼 Visual Output:

* A label placed **just above the High** of the respective candle.
* High and Low levels of the selected period are plotted as horizontal lines.
* Only the **two most recent closed periods** are displayed to keep the chart clean.

---

Let me know if you'd also like a **screenshot description** or **tags** for publication (e.g., `volatility`, `range`, `BTC`, `weekly`, etc.).

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。