OPEN-SOURCE SCRIPT

TRADION Adaptive Momentum Matrix

1 057
A normalized multi-factor momentum framework combining RSI structure, ROC velocity, MACD impulse and stochastic pressure into a unified -100 to +100 momentum regime model.

────────────────────────────
OVERVIEW
────────────────────────────

TRADION Adaptive Momentum Matrix (AMM) is a composite momentum oscillator designed to evaluate not only the direction of momentum, but also its intensity, acceleration and regime.

Rather than displaying several conventional oscillators independently, AMM transforms four different momentum dimensions into normalized components and combines them into a single bounded Momentum Score ranging from -100 to +100.

The engine integrates:

• RSI Momentum Structure
• Rate of Change (ROC) Velocity
• ATR-Normalized MACD Impulse
• Stochastic Pressure
• Weighted Composite Momentum Scoring
• Multi-Level Momentum Regimes
• Momentum Signal Line
• Compression Detection
• Confirmed-Bar Momentum Transitions
• Six Dedicated Alert Conditions

The objective is to provide a unified interpretation of momentum conditions while preserving the information contributed by different momentum methodologies.


────────────────────────────
COMPOSITE MOMENTUM ARCHITECTURE
────────────────────────────

The core of TRADION AMM is a weighted composite model.

Each momentum component measures a different characteristic of price behavior and is transformed into a normalized range before entering the final calculation.

The four default components are:

RSI Momentum — 30%
ROC Velocity — 25%
MACD Impulse — 25%
Stochastic Pressure — 20%

The component weights are user-adjustable.

The engine automatically normalizes the total weighting, allowing users to modify the relative importance of individual components without requiring the weights to manually sum to 100.


────────────────────────────
1. RSI MOMENTUM STRUCTURE
────────────────────────────

RSI is transformed around its 50 equilibrium level.

Values above 50 contribute positively to the composite momentum model, while values below 50 contribute negatively.

The distance from the 50 level represents the relative intensity of the RSI component.

This allows RSI to function as a normalized directional momentum input rather than simply as an overbought/oversold condition.


────────────────────────────
2. ROC VELOCITY
────────────────────────────

Rate of Change measures the velocity of price movement over the selected lookback period.

Positive ROC contributes to bullish momentum.

Negative ROC contributes to bearish momentum.

Because raw ROC magnitude can vary considerably between instruments and market regimes, the component is normalized using a configurable ROC scale before entering the composite calculation.


────────────────────────────
3. ATR-NORMALIZED MACD IMPULSE
────────────────────────────

The MACD component focuses on impulse rather than the absolute MACD level.

The engine calculates the difference between the MACD line and its signal line and then normalizes this histogram relative to ATR.

This is an important part of the architecture.

A raw MACD histogram value cannot be directly compared across instruments with different price scales and volatility characteristics.

ATR normalization expresses MACD impulse relative to the instrument's current volatility environment before it contributes to the composite score.


────────────────────────────
4. STOCHASTIC PRESSURE
────────────────────────────

The Stochastic component evaluates the position of price within its recent high-low range.

The result is smoothed and transformed around the neutral 50 level.

Values above the midpoint contribute positive pressure, while values below the midpoint contribute negative pressure.

This component adds a shorter-term measure of directional price pressure to the broader momentum framework.


────────────────────────────
THE -100 TO +100 MOMENTUM SCORE
────────────────────────────

After normalization and weighting, the four components are combined into the Adaptive Momentum Score.

The final oscillator is bounded between:

-100 = Maximum bearish momentum classification
0 = Momentum equilibrium
+100 = Maximum bullish momentum classification

The score is not intended to predict a specific future return.

Instead, it measures the degree of directional agreement between the underlying momentum components at the current point in time.


────────────────────────────
MOMENTUM REGIME MODEL
────────────────────────────

Instead of treating momentum as simply positive or negative, TRADION AMM separates the oscillator into multiple regimes.

Default bullish regimes:

+15 to +40
BULLISH

+40 to +70
STRONG BULLISH

+70 to +100
EXTREME BULLISH


Default bearish regimes:

-15 to -40
BEARISH

-40 to -70
STRONG BEARISH

-70 to -100
EXTREME BEARISH


The area between -15 and +15 represents the neutral momentum region.

All major regime thresholds are configurable.


────────────────────────────
ADAPTIVE HISTOGRAM
────────────────────────────

The histogram provides the primary visual representation of the composite Momentum Score.

Its color changes according to the active momentum regime.

Bullish momentum progresses through increasingly stronger green / turquoise classifications as the score rises.

Bearish momentum progresses through increasingly stronger red classifications as the score falls.

The histogram therefore communicates two variables simultaneously:

• Momentum direction
• Momentum intensity

This makes transitions between neutral, directional, strong and extreme momentum regimes immediately visible.


────────────────────────────
MOMENTUM SIGNAL LINE
────────────────────────────

A configurable EMA of the Momentum Score is plotted as a secondary signal line.

This provides a smoothed reference for interpreting changes in the composite oscillator.

The relationship between the Momentum Score and its signal line can help identify:

• Momentum acceleration
• Momentum deceleration
• Changes in short-term impulse
• Potential regime transitions

The signal line can be enabled or disabled from the settings.


────────────────────────────
MOMENTUM ACCELERATION
────────────────────────────

The engine also calculates the bar-to-bar change in the composite Momentum Score.

Positive momentum that continues to increase represents bullish momentum acceleration.

Negative momentum that continues to decrease represents bearish momentum acceleration.

This internal measurement allows the framework to distinguish momentum level from changes in momentum intensity.


────────────────────────────
COMPRESSION ENGINE
────────────────────────────

Markets do not remain in directional momentum regimes continuously.

TRADION AMM therefore includes a Momentum Compression model.

The engine evaluates the standard deviation of the composite Momentum Score over a configurable lookback period.

Compression is identified when:

• Momentum variability falls below the selected threshold
• The composite score remains inside the neutral momentum region

These conditions identify periods where directional momentum has contracted.

Compression does NOT predict the direction of a future breakout.

It simply identifies a low-dispersion momentum environment that may deserve additional attention.


────────────────────────────
CONFIRMED MOMENTUM TRANSITIONS
────────────────────────────

TRADION AMM includes six momentum transition classifications:

BULLISH SHIFT
STRONG BULLISH
EXTREME BULLISH

BEARISH SHIFT
STRONG BEARISH
EXTREME BEARISH

These events are generated when the composite Momentum Score crosses the corresponding regime threshold.

When Confirm Signals At Bar Close is enabled, a transition is accepted only after the current chart bar has been confirmed.

This helps prevent temporary intrabar threshold crossings from being treated as completed momentum transitions.


────────────────────────────
VISUAL REGIME MAP
────────────────────────────

The oscillator panel is divided into visually distinct momentum zones.

This provides a structured map of the current momentum environment:

EXTREME BULLISH

STRONG BULLISH

BULLISH

NEUTRAL / COMPRESSION

BEARISH

STRONG BEARISH

EXTREME BEARISH

The visual design is intended to make changes in momentum regime readable without requiring constant interpretation of individual indicator values.


────────────────────────────
USER CONTROLS
────────────────────────────

Momentum Engine:

• Source
• RSI Period
• ROC Period
• MACD Fast Length
• MACD Slow Length
• MACD Signal Length
• Stochastic Period
• Stochastic Smoothing


Component Weights:

• RSI Weight
• ROC Weight
• MACD Weight
• Stochastic Weight


Normalization:

• ROC Normalization Scale
• MACD ATR Normalization Period
• MACD Normalization Sensitivity


Momentum Regimes:

• Bullish Threshold
• Strong Threshold
• Extreme Threshold


Signal Engine:

• Momentum Signal Length
• Show Momentum Shift Signals
• Confirm Signals At Bar Close


Compression:

• Compression Lookback
• Compression Threshold
• Highlight Compression


Visual Settings:

• Show Momentum Histogram
• Show Signal Line
• Show Regime Zones


────────────────────────────
ALERT SYSTEM
────────────────────────────

Six dedicated TradingView alert conditions are included:

• TRADION BULLISH SHIFT
• TRADION STRONG BULLISH
• TRADION EXTREME BULLISH
• TRADION BEARISH SHIFT
• TRADION STRONG BEARISH
• TRADION EXTREME BEARISH

Each momentum classification can therefore be monitored independently.


────────────────────────────
PRACTICAL INTERPRETATION
────────────────────────────

TRADION Adaptive Momentum Matrix can be used as:

• A composite momentum oscillator
• A momentum regime classifier
• A momentum-strength confirmation layer
• A momentum acceleration/deceleration reference
• A compression detection framework
• A confirmation tool alongside independent trend analysis
• An alert-based momentum monitoring system

For example, a positive Momentum Score does not automatically imply that momentum is strong.

The regime model distinguishes between ordinary bullish momentum, strong bullish momentum and extreme bullish momentum.

The same principle applies to bearish conditions.

This distinction is central to the design of the indicator.


────────────────────────────
DESIGN PHILOSOPHY
────────────────────────────

Momentum is multidimensional.

RSI measures momentum differently from ROC.

ROC measures velocity differently from MACD impulse.

Stochastic positioning provides different information from all three.

TRADION Adaptive Momentum Matrix does not attempt to replace these concepts with a single conventional oscillator.

Instead, it asks a broader question:

How strongly do multiple independent momentum measurements agree on the current directional state?

The individual components are normalized, weighted and aggregated into a common -100 to +100 framework.

The resulting Momentum Score is then classified into structured regimes, allowing direction and intensity to be interpreted within the same analytical model.


────────────────────────────
IMPORTANT NOTES
────────────────────────────

TRADION Adaptive Momentum Matrix is an analytical oscillator, not a trading strategy or prediction system.

BULLISH, STRONG BULLISH, EXTREME BULLISH, BEARISH, STRONG BEARISH and EXTREME BEARISH classifications describe conditions calculated by the indicator.

They do not guarantee future price direction, profitability or trade outcomes.

EXTREME momentum should not automatically be interpreted as a reversal condition.

Strong momentum can remain elevated or depressed for extended periods during directional markets.

Similarly, Momentum Compression does not predict the direction or timing of a future breakout.

Confirmed-bar processing can reduce temporary intrabar signals, but it does not eliminate market risk, signal lag or false transitions.

Users should evaluate the indicator within their own analytical framework and apply appropriate risk management.

For research and educational purposes.

Wyłączenie odpowiedzialności

Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.