OPEN-SOURCE SCRIPT
ที่อัปเดต: ADR

**Overview**
This indicator displays the **Average Daily Range (ADR)** and **ADR Percentage** in a customizable table on your chart.
While the standard ATR (Average True Range) is a popular metric for volatility, it accounts for price gaps (e.g., overnight moves). **ADR**, on the other hand, strictly measures the average distance between the **High** and **Low** of price bars, completely ignoring gaps.
**Why use ADR instead of ATR?**
* **Day Trading:** For intraday traders (Forex, Crypto, Futures), ADR is often preferred because it calculates the "tradable" range of the day. It answers the question: *"On average, how much does this asset move from High to Low?"*
* **Target Setting:** ADR is excellent for projecting daily highs and lows. If price has already moved 100% of its ADR, the statistical probability of further extension decreases.
* **Pure Volatility:** It filters out the noise of overnight gaps to show pure intraday volatility.
**Calculation Logic**
* **ADR:** Calculated using a Simple Moving Average (SMA) of the `High - Low` range over the specified length.
* Formula: `SMA(High - Low, Length)`
* **ADR%:** Shows the ADR relative to the current price.
* Formula: `(ADR / Current Close) * 100`
**Features**
* **Clean Dashboard:** A minimalist table displays the ADR value and the ADR %.
* **Customizable:** You can change the calculation length (default is 14) and move the table to any corner of the chart (Top/Bottom, Left/Right) to fit your workspace.
**Settings**
* **ADR Length:** The lookback period for the average (Default: 14).
* **Display Position:** Choose where the table appears on your screen.
This indicator displays the **Average Daily Range (ADR)** and **ADR Percentage** in a customizable table on your chart.
While the standard ATR (Average True Range) is a popular metric for volatility, it accounts for price gaps (e.g., overnight moves). **ADR**, on the other hand, strictly measures the average distance between the **High** and **Low** of price bars, completely ignoring gaps.
**Why use ADR instead of ATR?**
* **Day Trading:** For intraday traders (Forex, Crypto, Futures), ADR is often preferred because it calculates the "tradable" range of the day. It answers the question: *"On average, how much does this asset move from High to Low?"*
* **Target Setting:** ADR is excellent for projecting daily highs and lows. If price has already moved 100% of its ADR, the statistical probability of further extension decreases.
* **Pure Volatility:** It filters out the noise of overnight gaps to show pure intraday volatility.
**Calculation Logic**
* **ADR:** Calculated using a Simple Moving Average (SMA) of the `High - Low` range over the specified length.
* Formula: `SMA(High - Low, Length)`
* **ADR%:** Shows the ADR relative to the current price.
* Formula: `(ADR / Current Close) * 100`
**Features**
* **Clean Dashboard:** A minimalist table displays the ADR value and the ADR %.
* **Customizable:** You can change the calculation length (default is 14) and move the table to any corner of the chart (Top/Bottom, Left/Right) to fit your workspace.
**Settings**
* **ADR Length:** The lookback period for the average (Default: 14).
* **Display Position:** Choose where the table appears on your screen.
เอกสารเผยแพร่
Update the syntax to version 6สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน