OPEN-SOURCE SCRIPT
Aktualisiert Momentum - MOM | TR

🎯 Overview
Momentum - MOM | TR is a classic and intuitive momentum oscillator that measures the rate of change in price over a specified period. Developed by Tiagorocha1989, this enhanced version of the traditional Momentum indicator offers dual-mode operation with moving average customization and comprehensive visual features, helping traders identify trend strength, momentum shifts, and potential reversal points with clarity and precision.
🔧 How It Works
The Momentum indicator calculates the absolute difference between the current price and the price from a specified number of periods ago. This simple yet powerful calculation reveals whether prices are accelerating (increasing momentum) or decelerating (decreasing momentum).
Core Calculation Logic:
The indicator calculates Momentum using the standard formula:
Momentum = Current Price - Price n-periods ago
Where n is the user-defined Length MOM
The resulting oscillator fluctuates around zero, with:
Positive Momentum values indicating that prices are higher than they were n-periods ago (upward momentum)
Negative Momentum values indicating that prices are lower than they were n-periods ago (downward momentum)
Zero line representing no net change over the period
The magnitude of the value indicates momentum strength:
Large positive values → Strong upward momentum
Large negative values → Strong downward momentum
Values approaching zero → Weakening momentum or consolidation
The indicator compares Momentum to a reference line that can be either:
The traditional zero level
A user-defined moving average of Momentum itself (MOM MA mode)
✨ Key Features
🔹 Dual Operating Modes
Zero Line Mode: Classic Momentum implementation where signals occur when Momentum crosses above or below the zero line
MOM MA Mode: Enhanced version where signals occur when Momentum crosses its own moving average, providing smoother, filtered entries
🔹 Flexible Moving Average Selection
Choose from six MA types for the MOM MA mode:
EMA (Exponential Moving Average) for responsive signals
SMA (Simple Moving Average) for smoother readings
RMA (Rolling Moving Average) for weighted recent data
WMA (Weighted Moving Average) for customizable weighting
VWMA (Volume-Weighted Moving Average) incorporating volume
HMA (Hull Moving Average) for reduced lag
🔹 Customizable Momentum Parameters
Length MOM: Lookback period for Momentum calculation (default 36)
Source MOM: Price source for calculations (default Close)
🔹 Extended Range Visualization
The indicator includes gradient fills at +/-6000, providing clear visualization of extreme momentum readings regardless of the instrument's price level.
🔹 Customizable Color Themes
Eight distinct color schemes to match your charting preferences:
Classic – Green for bullish, Red for bearish
Modern – White for bullish, Purple for bearish
Robust – Amber for bullish, Maroon for bearish
Accented – Violet for bullish, Pink for bearish
Monochrome – Light gray for bullish, Dark gray for bearish
Moderate – Green for bullish, Red for bearish
Aqua – Blue for bullish, Orange for bearish
Cosmic – Pink for bullish, Purple for bearish
🔹 Comprehensive Visual Feedback
Colored Momentum Line: Changes color based on position relative to the reference line
Signal Line: Yellow line showing zero or MA reference
Gradient Fill Zones: Clear visualization of extreme momentum readings
Dynamic Zone Fills: Semi-transparent fills showing when Momentum is above or below the reference line
Color-Coded Candles: Bars reflect current Momentum bias (above or below reference)
Signal Markers: Triangle up/down symbols at crossover points
Live Value Display: Current Momentum value shown in a floating label
Trend Table: Bullish/Bearish status displayed on the chart
🔹 Ready-to-Use Alerts
Built-in alert conditions trigger LONG signals on bullish crossovers and SHORT signals on bearish crossunders across both operating modes.
⚙️ Settings Summary
Color Choice: Select from eight visual themes (Default: Classic)
Length MOM: Lookback period for Momentum calculation (Default: 36)
Source MOM: Price source for calculations (Default: Close)
Entry/Exit Signal: Choose between zero line or MOM MA mode (Default: Zero Line)
Length MA: Moving average period for MOM MA mode (Default: 365)
MOM MA Type: Moving average method for signal line (Default: EMA)
📈 Practical Applications
🔹 Trend Direction Identification
The Momentum line's position relative to zero indicates trend direction:
Momentum above zero → Bullish trend
Momentum below zero → Bearish trend
The steepness of the slope indicates momentum strength
🔹 Zero Line Crossovers
In Zero Line mode, crossovers provide momentum signals:
Crossover above zero → Bullish momentum strengthening, potential trend reversal up
Crossunder below zero → Bearish momentum strengthening, potential trend reversal down
These are among the simplest and most intuitive trading signals
🔹 Signal Line Crossovers
In MOM MA mode, crossovers between Momentum and its moving average provide filtered signals:
Momentum crosses above its MA → Bullish signal
Momentum crosses below its MA → Bearish signal
These signals reduce whipsaws in choppy markets
🔹 Divergence Trading
Momentum is excellent for spotting divergences:
Bullish Divergence: Price makes lower low, Momentum makes higher low → Potential upside reversal
Bearish Divergence: Price makes higher high, Momentum makes lower high → Potential downside reversal
Divergences are most significant when occurring at extreme levels
🔹 Momentum Confirmation
The slope and magnitude of Momentum confirm trend strength:
Rising Momentum values → Strengthening bullish momentum
Falling Momentum values → Strengthening bearish momentum
Flattening Momentum → Momentum slowing, potential trend change
🔹 Centerline Rejections
When Momentum approaches zero but reverses before crossing, it can signal trend continuation:
Momentum pulls back toward zero but reverses up → Bullish continuation
Momentum rallies toward zero but reverses down → Bearish continuation
🔹 Multiple Timeframe Analysis
Compare Momentum readings across different timeframes:
Higher timeframe Momentum confirms primary trend direction
Lower timeframe Momentum identifies entry timing and short-term momentum shifts
🎯 Ideal For
✅ Trend Traders seeking to confirm trend direction and strength
✅ Momentum Traders wanting to measure the rate of price change
✅ Divergence Traders looking for early reversal signals
✅ Swing Traders capturing medium-term momentum shifts
✅ System Developers needing simple, reliable crossover logic
✅ Beginner Traders starting with one of the most intuitive indicators
📌 Key Takeaways
Simplicity and Intuition: Momentum is one of the most straightforward indicators, measuring exactly what its name suggests
Dual-Mode Flexibility: Choose between classic zero-line crossovers for simplicity or MA-smoothed signals for filtered entries
Unbounded Nature: Unlike RSI or Stochastic, Momentum has no upper or lower limits, making it suitable for strongly trending markets
Comprehensive Visualization: Color themes, gradient fills for extreme readings, candles, and labels provide immediate market awareness
Divergence Capability: Excellent for spotting both regular and hidden divergences
Alert-Ready: Built-in alerts for both LONG and SHORT signals across both operating modes
⚠️ Important Notes
Because Momentum is unbounded, the scale will vary significantly between different instruments and timeframes. The gradient fills at +/-6000 are arbitrary reference points and may not represent actual overbought/oversold conditions for all instruments. The default length of 36 provides a medium-term perspective; shorter lengths (9-14) provide more responsive signals, while longer lengths identify longer-term trends. The 365-day MA default in MOM MA mode is designed for longer-term trend context on daily charts. Divergences are most reliable when they occur after extended trends. Always combine with proper risk management and additional confirmation for best results.
Disclaimer: This indicator is provided for educational and informational purposes only. Past performance is not indicative of future results. Always conduct thorough testing and align with your risk management strategy before live deployment.
Momentum - MOM | TR is a classic and intuitive momentum oscillator that measures the rate of change in price over a specified period. Developed by Tiagorocha1989, this enhanced version of the traditional Momentum indicator offers dual-mode operation with moving average customization and comprehensive visual features, helping traders identify trend strength, momentum shifts, and potential reversal points with clarity and precision.
🔧 How It Works
The Momentum indicator calculates the absolute difference between the current price and the price from a specified number of periods ago. This simple yet powerful calculation reveals whether prices are accelerating (increasing momentum) or decelerating (decreasing momentum).
Core Calculation Logic:
The indicator calculates Momentum using the standard formula:
Momentum = Current Price - Price n-periods ago
Where n is the user-defined Length MOM
The resulting oscillator fluctuates around zero, with:
Positive Momentum values indicating that prices are higher than they were n-periods ago (upward momentum)
Negative Momentum values indicating that prices are lower than they were n-periods ago (downward momentum)
Zero line representing no net change over the period
The magnitude of the value indicates momentum strength:
Large positive values → Strong upward momentum
Large negative values → Strong downward momentum
Values approaching zero → Weakening momentum or consolidation
The indicator compares Momentum to a reference line that can be either:
The traditional zero level
A user-defined moving average of Momentum itself (MOM MA mode)
✨ Key Features
🔹 Dual Operating Modes
Zero Line Mode: Classic Momentum implementation where signals occur when Momentum crosses above or below the zero line
MOM MA Mode: Enhanced version where signals occur when Momentum crosses its own moving average, providing smoother, filtered entries
🔹 Flexible Moving Average Selection
Choose from six MA types for the MOM MA mode:
EMA (Exponential Moving Average) for responsive signals
SMA (Simple Moving Average) for smoother readings
RMA (Rolling Moving Average) for weighted recent data
WMA (Weighted Moving Average) for customizable weighting
VWMA (Volume-Weighted Moving Average) incorporating volume
HMA (Hull Moving Average) for reduced lag
🔹 Customizable Momentum Parameters
Length MOM: Lookback period for Momentum calculation (default 36)
Source MOM: Price source for calculations (default Close)
🔹 Extended Range Visualization
The indicator includes gradient fills at +/-6000, providing clear visualization of extreme momentum readings regardless of the instrument's price level.
🔹 Customizable Color Themes
Eight distinct color schemes to match your charting preferences:
Classic – Green for bullish, Red for bearish
Modern – White for bullish, Purple for bearish
Robust – Amber for bullish, Maroon for bearish
Accented – Violet for bullish, Pink for bearish
Monochrome – Light gray for bullish, Dark gray for bearish
Moderate – Green for bullish, Red for bearish
Aqua – Blue for bullish, Orange for bearish
Cosmic – Pink for bullish, Purple for bearish
🔹 Comprehensive Visual Feedback
Colored Momentum Line: Changes color based on position relative to the reference line
Signal Line: Yellow line showing zero or MA reference
Gradient Fill Zones: Clear visualization of extreme momentum readings
Dynamic Zone Fills: Semi-transparent fills showing when Momentum is above or below the reference line
Color-Coded Candles: Bars reflect current Momentum bias (above or below reference)
Signal Markers: Triangle up/down symbols at crossover points
Live Value Display: Current Momentum value shown in a floating label
Trend Table: Bullish/Bearish status displayed on the chart
🔹 Ready-to-Use Alerts
Built-in alert conditions trigger LONG signals on bullish crossovers and SHORT signals on bearish crossunders across both operating modes.
⚙️ Settings Summary
Color Choice: Select from eight visual themes (Default: Classic)
Length MOM: Lookback period for Momentum calculation (Default: 36)
Source MOM: Price source for calculations (Default: Close)
Entry/Exit Signal: Choose between zero line or MOM MA mode (Default: Zero Line)
Length MA: Moving average period for MOM MA mode (Default: 365)
MOM MA Type: Moving average method for signal line (Default: EMA)
📈 Practical Applications
🔹 Trend Direction Identification
The Momentum line's position relative to zero indicates trend direction:
Momentum above zero → Bullish trend
Momentum below zero → Bearish trend
The steepness of the slope indicates momentum strength
🔹 Zero Line Crossovers
In Zero Line mode, crossovers provide momentum signals:
Crossover above zero → Bullish momentum strengthening, potential trend reversal up
Crossunder below zero → Bearish momentum strengthening, potential trend reversal down
These are among the simplest and most intuitive trading signals
🔹 Signal Line Crossovers
In MOM MA mode, crossovers between Momentum and its moving average provide filtered signals:
Momentum crosses above its MA → Bullish signal
Momentum crosses below its MA → Bearish signal
These signals reduce whipsaws in choppy markets
🔹 Divergence Trading
Momentum is excellent for spotting divergences:
Bullish Divergence: Price makes lower low, Momentum makes higher low → Potential upside reversal
Bearish Divergence: Price makes higher high, Momentum makes lower high → Potential downside reversal
Divergences are most significant when occurring at extreme levels
🔹 Momentum Confirmation
The slope and magnitude of Momentum confirm trend strength:
Rising Momentum values → Strengthening bullish momentum
Falling Momentum values → Strengthening bearish momentum
Flattening Momentum → Momentum slowing, potential trend change
🔹 Centerline Rejections
When Momentum approaches zero but reverses before crossing, it can signal trend continuation:
Momentum pulls back toward zero but reverses up → Bullish continuation
Momentum rallies toward zero but reverses down → Bearish continuation
🔹 Multiple Timeframe Analysis
Compare Momentum readings across different timeframes:
Higher timeframe Momentum confirms primary trend direction
Lower timeframe Momentum identifies entry timing and short-term momentum shifts
🎯 Ideal For
✅ Trend Traders seeking to confirm trend direction and strength
✅ Momentum Traders wanting to measure the rate of price change
✅ Divergence Traders looking for early reversal signals
✅ Swing Traders capturing medium-term momentum shifts
✅ System Developers needing simple, reliable crossover logic
✅ Beginner Traders starting with one of the most intuitive indicators
📌 Key Takeaways
Simplicity and Intuition: Momentum is one of the most straightforward indicators, measuring exactly what its name suggests
Dual-Mode Flexibility: Choose between classic zero-line crossovers for simplicity or MA-smoothed signals for filtered entries
Unbounded Nature: Unlike RSI or Stochastic, Momentum has no upper or lower limits, making it suitable for strongly trending markets
Comprehensive Visualization: Color themes, gradient fills for extreme readings, candles, and labels provide immediate market awareness
Divergence Capability: Excellent for spotting both regular and hidden divergences
Alert-Ready: Built-in alerts for both LONG and SHORT signals across both operating modes
⚠️ Important Notes
Because Momentum is unbounded, the scale will vary significantly between different instruments and timeframes. The gradient fills at +/-6000 are arbitrary reference points and may not represent actual overbought/oversold conditions for all instruments. The default length of 36 provides a medium-term perspective; shorter lengths (9-14) provide more responsive signals, while longer lengths identify longer-term trends. The 365-day MA default in MOM MA mode is designed for longer-term trend context on daily charts. Divergences are most reliable when they occur after extended trends. Always combine with proper risk management and additional confirmation for best results.
Disclaimer: This indicator is provided for educational and informational purposes only. Past performance is not indicative of future results. Always conduct thorough testing and align with your risk management strategy before live deployment.
Versionshinweise
Resolution Previous ProblemOpen-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.