OPEN-SOURCE SCRIPT

Adaptive Trend & Momentum Composite (ATMC)

134
This script combines two well-established technical concepts—adaptive moving averages and normalized momentum oscillators—into a single, cohesive system designed to identify high-probability trend continuations with reduced noise.

What it does:
The indicator dynamically adjusts its sensitivity based on market volatility (using an ATR-based filter) and overlays a smoothed momentum signal that highlights potential exhaustion points within the prevailing trend. Unlike generic "trend-following" scripts, this implementation uses the Kaufman Adaptive Moving Average (KAMA) for price filtering and a rate-of-change (ROC) oscillator normalized between -1 and +1 to gauge momentum strength.

How it works:

Trend Filter: KAMA adapts its smoothing factor based on market efficiency—reacting quickly in trending markets and slowing down in choppy conditions.
Momentum Confirmation: A 9-period ROC is scaled to a fixed range to avoid amplitude distortion across assets. When momentum aligns with the KAMA direction and exceeds a volatility-adjusted threshold, the script paints a colored background (green for long bias, red for short bias).
Noise Reduction: Signals are only displayed when the 14-period ATR is above its 50-period moving average, ensuring trades occur in sufficiently active markets.
How to use it:

Long setups: Look for green background zones after a pullback, ideally near dynamic support (e.g., previous swing low or KAMA line).
Short setups: Red zones after rallies near resistance.
Avoid trading when no background is shown—this indicates either low volatility or conflicting signals.
Why this mashup is useful:
Many traders combine trend and momentum indicators, but often without synchronization logic. Here, both components are interdependent: momentum must confirm the adaptive trend and pass a volatility gate. This reduces false signals common in sideways markets—a frequent pain point with standard MACD or EMA crossovers.

This script is not investment advice. Test it thoroughly in your own strategy before live use.

Clause de non-responsabilité

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