OPEN-SOURCE SCRIPT
Adaptive Trend & Momentum Composite (ATMC)

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.
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.
Script de código abierto
Siguiendo fielmente el espíritu de TradingView, el creador de este script lo ha publicado en código abierto, permitiendo que otros traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la publicación de este código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.
Script de código abierto
Siguiendo fielmente el espíritu de TradingView, el creador de este script lo ha publicado en código abierto, permitiendo que otros traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la publicación de este código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.