OPEN-SOURCE SCRIPT

Triple ATR Adaptive MAs + VWAP Option + Clouds + Candle Trend V2

119
Another one of my experiences ... combining things...

📘 Indicator Description – Triple ATR Adaptive Moving Averages with VWAP Influence

This indicator plots three adaptive moving averages whose behavior changes dynamically based on market volatility (ATR) and optionally VWAP deviation.
Because they adapt in real time to both volatility and VWAP pressure, their movement, slope, and reaction speed differ significantly from traditional moving averages.

🔶 1. ATR-Adaptive Moving Averages

Each of the three MAs uses a custom adaptive formula:

ATR (Average True Range) is measured over a chosen period.

Higher ATR → more volatility → the MA becomes more reactive and moves closer to price.

Lower ATR → stable market → the MA becomes smoother and slower.

This creates a volatility-aware smoothing factor, making the MA expand, contract, and respond to market conditions in ways a classic SMA, EMA, or HMA cannot.

🔷 2. Optional VWAP Influence

Each MA has an independent toggle allowing it to be influenced by VWAP.

When enabled:

The MA is gently “pulled” toward VWAP.

The strength of this attraction is determined by the VWAP Influence parameter (0–1).

This causes the moving averages to behave differently from normal MAs:

In trending markets, the ATR and price push the MA away from VWAP.

In mean-reverting or balanced conditions, VWAP pulls the MA back toward fair value.

The result is an MA that reflects both trend pressure and fair-value pressure.

🔶 3. Visual Behavior: Non-Traditional Movement

Because each MA is simultaneously influenced by volatility, trend magnitude, and VWAP deviation, their shape is often very distinct from normal moving averages.

They may:

Respond faster during high volatility

Flatten out earlier during consolidation

Curve toward VWAP when price becomes extended

Separate or compress depending on ATR strength

This is intentional and essential, since the goal is to show:

✔ Volatility expansion
✔ Trend exhaustion
✔ Overextended price relative to VWAP
✔ Dynamic trend confirmation

Rather than simply smoothing past price.

🔷 4. Three Independent Adaptive Lines

Each of the three moving averages has:

Its own ATR length

Its own sensitivity multiplier

Its own optional VWAP influence

Its own color and trail

This allows the user to combine:

a fast volatility-adaptive trend line

a mid-range adaptive baseline

a slow adaptive long-trend MA

All adapting independently to volatility and VWAP conditions.

🔶 5. Optional Candle Coloring

The indicator can color candles according to trend strength derived from the fast/slow MAs.
Stronger trends produce more vivid colors. Neutral or conflicting trends produce softer colors.

This adds a visual layer to identify:

Trend direction

Trend strength

Volatility state

Market compression

at a glance.

📌 Summary

This indicator does not behave like standard SMAs or EMAs because each line dynamically adapts to:

🔸 ATR (volatility)
🔸 VWAP (fair value)

This makes the indicator extremely responsive to market conditions while still reducing noise during stable phases.
It provides a more realistic, context-aware, and intelligent representation of price behavior compared to traditional moving averages.

Clause de non-responsabilité

Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.