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が提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。