OPEN-SOURCE SCRIPT
Volatility-Adaptive Moving Average | TR

📝 Overview
This indicator combines a volatility-adaptive moving average with dynamic period adjustment, creating a responsive trend-following system that automatically adjusts to changing market conditions.
The core concept is simple yet powerful: when volatility increases, the moving average becomes more responsive; when volatility decreases, it smooths out – reducing lag while filtering out noise.
⚙️ Key Features
📊 Smart Moving Average Engine
Choose from 15 different MA types:
Standard: EMA, SMA, RMA, WMA, VWMA
Advanced: HMA, SWMA, ALMA, DEMA, FRAMA, KAMA
Complex: T3, T3ALT, TEMA, TRIMA
🔄 Dynamic Period Adjustment
Period changes automatically based on volatility ratio
Uses ATR (Average True Range) to measure current market volatility
Can be smoothed for more stable period transitions
🎯 Visual Signals
Clear BUY/SELL labels on price crossovers
Volatility bands that expand/contract with market conditions
Real-time info label showing key metrics
Statistics table with all important values
🎨 Color Customization
9 different color schemes to match your chart style:
Classic, Modern, Heat, Robust, Accented, Monochrome, Moderate, Aqua, Cosmic
🔧 How It Works
ATR Calculation: Measures current market volatility
Average ATR: Establishes baseline volatility
Volatility Ratio: Compares current vs average volatility
Dynamic Period: Adjusts MA length based on this ratio
Adaptive MA: Plots the volatility-adjusted moving average
📈 Use Cases
✅ Trend Following – Capture trends early without excessive whipsaws
✅ Volatility Trading – Adjust position sizing based on market conditions
✅ Entry/Exit Signals – Get clear crossover signals with minimal lag
✅ Market Analysis – Visualize volatility expansion/contraction in real-time
This indicator combines a volatility-adaptive moving average with dynamic period adjustment, creating a responsive trend-following system that automatically adjusts to changing market conditions.
The core concept is simple yet powerful: when volatility increases, the moving average becomes more responsive; when volatility decreases, it smooths out – reducing lag while filtering out noise.
⚙️ Key Features
📊 Smart Moving Average Engine
Choose from 15 different MA types:
Standard: EMA, SMA, RMA, WMA, VWMA
Advanced: HMA, SWMA, ALMA, DEMA, FRAMA, KAMA
Complex: T3, T3ALT, TEMA, TRIMA
🔄 Dynamic Period Adjustment
Period changes automatically based on volatility ratio
Uses ATR (Average True Range) to measure current market volatility
Can be smoothed for more stable period transitions
🎯 Visual Signals
Clear BUY/SELL labels on price crossovers
Volatility bands that expand/contract with market conditions
Real-time info label showing key metrics
Statistics table with all important values
🎨 Color Customization
9 different color schemes to match your chart style:
Classic, Modern, Heat, Robust, Accented, Monochrome, Moderate, Aqua, Cosmic
🔧 How It Works
ATR Calculation: Measures current market volatility
Average ATR: Establishes baseline volatility
Volatility Ratio: Compares current vs average volatility
Dynamic Period: Adjusts MA length based on this ratio
Adaptive MA: Plots the volatility-adjusted moving average
📈 Use Cases
✅ Trend Following – Capture trends early without excessive whipsaws
✅ Volatility Trading – Adjust position sizing based on market conditions
✅ Entry/Exit Signals – Get clear crossover signals with minimal lag
✅ Market Analysis – Visualize volatility expansion/contraction in real-time
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。