Universal Moving Average Convergence Divergence
Feb 5, 2023

The Universal Moving Average Convergence Divergence indicator provides a normalized version of the traditional MACD by calculating the percentage difference between moving averages, allowing for consistent comparison across assets with varying price scales.
Usage
The Universal Moving Average Convergence Divergence (UMACD) is used to identify trend momentum and potential reversals, similar to the standard MACD, but with the added benefit of price-scale independence.
- Trend Identification: When the UMACD line is above the zero line, the short-term average is higher than the long-term average, suggesting a bullish trend. Conversely, a value below zero suggests a bearish trend.
- Crossovers: Traders can monitor the MACD line crossing the Signal line. A cross above the signal line is typically interpreted as a bullish signal, while a cross below is bearish.
- Cross-Asset Comparison: Because the output is a ratio rather than a raw price difference, users can compare the momentum strength between different assets (e.g., comparing BTC and a low-priced altcoin) directly on the same numerical scale.
- Optimization and Machine Learning: The normalized nature of the UMACD makes it a suitable feature for quantitative analysis and machine learning models, as it provides a bounded-style input that does not scale with the absolute price of the asset.
Details
The traditional MACD formula calculates the difference between two moving averages (Fast MA - Slow MA). This results in a value expressed in the currency of the asset, making it difficult to compare assets or maintain consistent settings on assets with extreme price differences.
The UMACD, originally developed by @mablue, modifies this formula to:
UMACD = (Fast MA / Slow MA) - 1
By using a ratio, the indicator effectively measures the percentage divergence between the two averages. In most market conditions, the oscillator fluctuates between 0.1 and -0.1. This normalization ensures that the indicator remains functional for low-priced assets without requiring decimal adjustments and allows for consistent threshold analysis across a diverse portfolio.
Settings
Main Settings
- Fast Length: The lookback period for the shorter-term moving average.
- Slow Length: The lookback period for the longer-term moving average.
- Source: The price data used for calculations (e.g., Close, Open, High, Low).
- Signal Smoothing: The lookback period for the moving average of the UMACD line, used to create the Signal line.
- Oscillator MA Type: Selects between a Simple Moving Average (SMA) or Exponential Moving Average (EMA) for the fast and slow lines.
- Signal Line MA Type: Selects between a Simple Moving Average (SMA) or Exponential Moving Average (EMA) for the Signal line smoothing.
Visual Settings
- MACD Line: Customizes the color of the primary UMACD line.
- Signal Line: Customizes the color of the signal smoothing line.
- Histogram Colors: Provides four color options to distinguish between growing/falling values above and below the zero line.
FAQ
What is the primary advantage of UMACD over standard MACD?
The UMACD is "Universal" because it uses a ratio-based calculation. This allows the indicator to produce comparable values across different assets regardless of their unit price, which is not possible with the standard price-subtraction method used in traditional MACD.
Is the UMACD better for low-priced assets like "meme coins"?
Yes, it is particularly effective for assets with very small nominal prices. Traditional MACD can produce extremely small decimals that are difficult to read or interpret, whereas UMACD scales these movements into a readable percentage-based format.
How can I access the Universal Moving Average Convergence Divergence?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.