OPEN-SOURCE SCRIPT
MA + ATR

Here’s a clean, professional **TradingView description** you can use when publishing your script:
---
## 📊 Multi MA + ATR Extension Dashboard
This indicator combines key moving averages with volatility analysis to provide a clear, real-time view of trend structure, extension, and momentum.
---
### 🔧 Features
**Moving Averages**
* Plots **5, 21, 50, and 200 MA**
* Supports **SMA or EMA selection per MA**
* Clean color scheme for quick visual recognition
**ATR-Based Extension**
* Measures how far price is from each MA in **ATR units**
* Helps identify:
* Overextended moves
* Mean reversion zones
* Healthy vs stretched trends
**Trend Curl (Angle)**
* Displays **angle of curl (slope)** for 21, 50, and 200 MA
* Quickly shows:
* Trend acceleration
* Flattening structure
* Early reversal signals
**Smart Table Dashboard**
* Compact table showing:
* MA type + direction (arrow)
* Distance from MA (in ATR)
* Price position (above/below)
* Curl (angle) of key MAs
* Customizable position and size
**ATR Volatility Context**
* Shows ATR % (volatility relative to price)
* Helps compare volatility across instruments
---
### 🧠 How to Use
* **Trend Identification**
* Look for alignment (21 > 50 > 200 = bullish)
* Use curl to confirm strengthening or weakening trends
* **Extension Analysis**
* 1 ATR = normal move
* 2 ATR = extended
* 3 ATR = potential exhaustion
* **Mean Reversion**
* High ATR extension + flattening curl = pullback probability
* **Momentum Insight**
* Rising curl = strengthening trend
* Falling curl = weakening trend
---
### ⚙️ Best Use Cases
* Intraday trend trading
* Swing trading pullbacks
* Identifying exhaustion moves
* Volatility-aware risk management
---
### 💡 Notes
* ATR measures **volatility, not direction**
* Works best when combined with price structure and volume
---
## 📊 Multi MA + ATR Extension Dashboard
This indicator combines key moving averages with volatility analysis to provide a clear, real-time view of trend structure, extension, and momentum.
---
### 🔧 Features
**Moving Averages**
* Plots **5, 21, 50, and 200 MA**
* Supports **SMA or EMA selection per MA**
* Clean color scheme for quick visual recognition
**ATR-Based Extension**
* Measures how far price is from each MA in **ATR units**
* Helps identify:
* Overextended moves
* Mean reversion zones
* Healthy vs stretched trends
**Trend Curl (Angle)**
* Displays **angle of curl (slope)** for 21, 50, and 200 MA
* Quickly shows:
* Trend acceleration
* Flattening structure
* Early reversal signals
**Smart Table Dashboard**
* Compact table showing:
* MA type + direction (arrow)
* Distance from MA (in ATR)
* Price position (above/below)
* Curl (angle) of key MAs
* Customizable position and size
**ATR Volatility Context**
* Shows ATR % (volatility relative to price)
* Helps compare volatility across instruments
---
### 🧠 How to Use
* **Trend Identification**
* Look for alignment (21 > 50 > 200 = bullish)
* Use curl to confirm strengthening or weakening trends
* **Extension Analysis**
* 1 ATR = normal move
* 2 ATR = extended
* 3 ATR = potential exhaustion
* **Mean Reversion**
* High ATR extension + flattening curl = pullback probability
* **Momentum Insight**
* Rising curl = strengthening trend
* Falling curl = weakening trend
---
### ⚙️ Best Use Cases
* Intraday trend trading
* Swing trading pullbacks
* Identifying exhaustion moves
* Volatility-aware risk management
---
### 💡 Notes
* ATR measures **volatility, not direction**
* Works best when combined with price structure and volume
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.