On this page
MAMA / FAMA: MESA Adaptive Averages by Ehlers
The **MAMA FAMA MESA adaptive moving average** is a two-line trend tool from John Ehlers that varies its smoothing speed bar by bar. MAMA accelerates when price changes phase quickly and slows when phase stabilizes; FAMA is a slower follower built from MAMA, and their crossings flag major turns.
Key Takeaways
- MAMA adjusts its EMA alpha using the Hilbert Transform phase rate of change, not a fixed period.
- FAMA is a slower line built from MAMA and crosses MAMA only at significant trend reversals.
- Investors often misread small MAMA-FAMA touches as signals; meaningful crosses are wider and less frequent.
- The fast-attack, slow-decay design holds a line steady through noise yet snaps to genuine breaks.
Key Takeaways
- MAMA adjusts its EMA alpha using the Hilbert Transform phase rate of change, not a fixed period.
- FAMA is a slower line built from MAMA and crosses MAMA only at significant trend reversals.
- Investors often misread small MAMA-FAMA touches as signals; meaningful crosses are wider and less frequent.
- The fast-attack, slow-decay design holds a line steady through noise yet snaps to genuine breaks.
What It Is
MAMA stands for MESA Adaptive Moving Average. FAMA stands for Following Adaptive Moving Average. John Ehlers published both in the September 2001 issue of Technical Analysis of Stocks and Commodities, building on his MESA work on cycle detection.
The pair plots two smoothed lines on the price chart. MAMA reacts faster and tracks price closely in trends; FAMA follows MAMA with extra lag. Crossovers between them act like a regime switch: MAMA above FAMA equals up phase, MAMA below FAMA equals down phase.
The Intuition
A standard EMA uses a fixed smoothing constant called alpha. The choice forces a tradeoff: a high alpha tracks price quickly but produces noise, a low alpha smooths well but lags badly. Markets, however, are not constant. Sometimes price moves with a clear cycle and benefits from a quick filter; other times it drifts and needs heavy smoothing.
Ehlers' insight is that the smoothing should adapt to the market itself. When the dominant cycle rotates phase quickly, the indicator should respond. When phase is stuck, the indicator should hold steady. MAMA implements that idea directly.
How It Works
MAMA derives alpha from the rate of change of price phase. Phase is computed from a Hilbert Transform Discriminator that extracts the in-phase and quadrature components of price.
alpha = FastLimit if phase rate is high
alpha = SlowLimit if phase rate is low
alpha = scaled between the two otherwise
MAMA(t) = alpha * Price(t) + (1 - alpha) * MAMA(t-1)
FAMA(t) = 0.5 * alpha * MAMA(t) + (1 - 0.5 * alpha) * FAMA(t-1)
Ehlers' defaults are FastLimit = 0.5 and SlowLimit = 0.05, giving MAMA an effective period range from about 3 to 39 bars depending on phase activity.
FAMA uses half of MAMA's current alpha. That half-rate creates the "fast attack, slow decay" behavior: MAMA can shoot up to follow a trend break, but FAMA only follows at half speed, opening a clean gap that defines the trend phase.
Worked Example
Consider an index that has been ranging tightly for a month and then breaks out sharply on news.
During the range, phase rotates slowly, the discriminator yields a low phase rate, and alpha sits near SlowLimit = 0.05. Both MAMA and FAMA hug each other near mid-range price. Crossings during this period are tight and often within tick noise, exactly as Ehlers intended.
On the breakout day, phase swings rapidly. Alpha jumps to FastLimit = 0.5. MAMA absorbs roughly half of the price change immediately, so MAMA jumps up. FAMA only uses half the alpha, so it advances by about a quarter of the price change. A visible gap opens between MAMA above and FAMA below, confirming the up phase. The gap persists as long as the trend holds and only closes when phase decelerates and price stalls.
Common Mistakes
- Counting every MAMA-FAMA touch as a signal. During chop, the two lines kiss many times. Wait for a clear separation with both lines sloping in the same direction.
- Using fixed-period thinking. Practitioners sometimes write that MAMA is "like a 20 EMA." It is not. Its effective period varies bar by bar. Period-based parameter searches miss the point.
- Ignoring the discriminator's needs. The Hilbert Transform pipeline needs roughly 50 bars of warmup. Early values on a fresh chart are unstable.
- Trading reversals at the cross alone. MAMA-FAMA crosses confirm direction, but Ehlers paired them with cycle measurements. Combine with a volume or volatility filter.
- Confusing MAMA with KAMA. Kaufman's KAMA also adapts alpha but uses an efficiency ratio rather than phase. Their behavior differs in cycling versus trending regimes.
Frequently Asked Questions
What is MAMA FAMA MESA adaptive moving average in simple terms? MAMA is a moving average whose smoothing speed adjusts to how fast price is changing phase. FAMA is a slower follower of MAMA, and the two crossing tells you when the trend changes.
How does MAMA FAMA MESA adaptive moving average affect investment decisions? A MAMA cross above FAMA marks an up phase and a cross below marks a down phase. Many practitioners use the pair as a trend filter, taking long setups only when MAMA sits above FAMA and shorts when it sits below.
What is a real-world example of MAMA / FAMA? On a chart of a stock that ranges for weeks and then breaks out, MAMA snaps higher on the breakout bar while FAMA only follows at half speed. The widening gap between the two lines marks the new uptrend clearly.
How can investors use MAMA / FAMA effectively? Set FastLimit near 0.5 and SlowLimit near 0.05 as Ehlers suggests, allow at least 50 bars of warmup, and require a clear separation between MAMA and FAMA before acting. Use it as a regime filter, not a sole entry trigger.
How is MAMA different from a standard EMA? A standard EMA has a fixed alpha and trails price by a roughly fixed amount. MAMA varies its alpha bar by bar using the phase rate of change, so it can track sharp breaks faster while still smoothing quiet periods.
Sources
- Ehlers, J. F. MAMA: The Mother of Adaptive Moving Averages. Mesa Software. https://www.mesasoftware.com/papers/MAMA.pdf
- Technical Analysis of Stocks and Commodities. MESA Adaptive Moving Averages, September 2001. http://traders.com/documentation/feedbk_docs/2001/09/Abstracts_new/Ehlers/ehlers.html
- TrendSpider Learning Center. MESA Adaptive Moving Average (MAMA). https://trendspider.com/learning-center/what-is-the-mesa-adaptive-moving-average-mama/
- Stock Indicators for .NET. MAMA. https://dotnet.stockindicators.dev/indicators/Mama/
Disclaimer
This article is educational content only and is not financial advice. Nothing here is a recommendation to buy, sell, or hold any security. Consult a licensed advisor before making investment decisions.