Concept
MAMA/FAMA
MAMA/FAMA, also known as MESA adaptive, is a Trend concept. The Library holds 3 implementations, each one a working definition you can pull into Quant.
Top MAMA/FAMA indicators
3 total
What is MAMA/FAMA?
MAMA is John Ehlers' MESA Adaptive Moving Average, published in 2001; FAMA, the Following Adaptive Moving Average, is its companion line. MAMA is an EMA whose smoothing factor is recomputed every bar from the rate of change of the dominant cycle's phase, measured with a Hilbert Transform discriminator. When phase rotates quickly, meaning price is behaving cyclically, the factor is forced toward its slow limit and the line goes nearly flat, ignoring the swings. When phase advance stalls because price has broken into a directional move, the factor snaps toward its fast limit and the average jumps to price. The result is a distinctive stair-step ratchet.
FAMA is an EMA of MAMA run at half of MAMA's current factor, so it covers ground at half the speed and acts as the signal line. Ehlers' published bounds are a fast limit of 0.5 and a slow limit of 0.05. Because the pair is built to separate only when price genuinely moves, their crossovers were designed to whipsaw less than fixed-length moving average crossovers; ranging markets can still produce failed signals.
How traders use it
- As a crossover system: MAMA above FAMA is the conventional long bias and below is the short bias, with the adaptive factor intended to keep signals sparse in cycle mode.
- As a regime read: wide, ordered separation between the lines is treated as trend, while braided flat lines are treated as cycle conditions better suited to mean-reversion tactics.
- As an adaptive smoothing core in other tools, replacing a fixed length so downstream logic inherits the fast-attack, slow-decay behavior.
Related concepts · Moving-average lineage
Concept family
Trend
100 concepts mapped · 88 in the Library
MAMA/FAMA FAQ
What is the difference between MAMA and FAMA?
MAMA is the primary adaptive average, recomputed each bar with a smoothing factor derived from the dominant cycle's phase. FAMA is not independent: it is an EMA of MAMA run at half of MAMA's current factor, so it shadows the same path at half speed. Signals conventionally come from the pair crossing, with FAMA as the trailing reference line.
What do the fast and slow limits do in MAMA?
They clamp the adaptive smoothing factor so it can never leave a set range. Ehlers' article used a fast limit of 0.5, equivalent to about a 3-bar EMA, and a slow limit of 0.05, about a 39-bar EMA. Tightening the bounds tames the ratchet and slows signals; widening them exaggerates the stair-step behavior and adds whipsaw risk.
Build MAMA/FAMA your way.
Quant writes, tests, and refines it with you — then it runs on LuxAlgo charting or ports to TradingView.

