Why Classic Moving Averages Fail in Changing Markets — And How Ehlers' Homodyne Discriminator Solves It

27 November 2026, 10:53
Roman Yablonskiy
0
10
Every trader who uses Moving Averages (SMA, EMA, WMA) faces the exact same dilemma:
  • Set a short period (e.g., 10–14) — you catch fast impulses early, but get destroyed by false crossovers during flat/sideways markets.
  • Set a long period (e.g., 50–100) — you filter out the noise, but enter trends way too late, giving back half of the move on reversals.
The root cause is simple: market volatility and cycle length are never constant, while a standard MA period is fixed.
Looking at the Market as a Wave
In signal processing and radar engineering, John Ehlers introduced an elegant solution to this problem: measuring the dominant market cycle in real time using a Homodyne Discriminator .
Instead of guessing a fixed period, the algorithm treats price action as a rotating vector (phasor):
  1. Hilbert Transform splits price data into In-Phase (I) and Quadrature (Q) components.
  2. Homodyne Mixing multiplies the current bar's vector by the complex conjugate of the previous bar's vector to measure the exact phase rotation angle per bar.
  3. Dynamic Period Calculation divides a full cycle (2π) by this angle, giving the real-time wavelength in bars.
What Happens on a Real Chart?
When you compare a standard EMA(20) with a Homodyne Moving Average on volatile instruments like XAUUSD (Gold) or EURUSD , two things stand out immediately:
  • During strong impulses: The dominant cycle shortens (e.g., down to 10–12 bars). The Homodyne MA automatically accelerates, hugging the price closely and turning almost immediately at the peak.
  • During sideways consolidation: A 4-point FIR filter and period rate-limiters cut out random price spikes, while the smoothing period stretches (up to 35–40 bars), keeping the line flat and preventing false signals.
  • During prolonged trends: A built-in Detrender subtracts the linear trend component before measuring the wave, so the indicator doesn't "freeze" or lag behind.