MESA MA
Indicator
The MESA adaptive average draws MAMA and a slower FAMA on the median price. The smoothing speeds up when the cycle phase is changing.
Created by John F. Ehlers, 2001. Reviewed by the ChartLabs team, updated Nov 2026.
MAMA is below FAMA (67,242.9).
MAMA 67,242.9 · FAMA 69,150.8
MAMA is below FAMA (67,242.9).
MAMA 67,242.9 · FAMA 69,150.8
Illustration on simulated data.
MESA adaptive moving averageWhat is the MESA MA indicator?
MAMA is Ehlers' MESA adaptive moving average, and FAMA is a further smooth of MAMA. The source defaults to the median, (high + low) / 2. The fast limit defaults to 50 and the slow limit to 5, which are Ehlers' 0.5 and 0.05 once they are divided by 100.
For the first five bars, records 0 through 4, both lines equal the median. The phase math starts on record 5. On a median that stays at 100, both lines stay at 100 after that as well, because each step is a blend of 100 with 100.
MAMA is blue #2196F3 at 2 px. FAMA is orange #FF9800 at 1 px. Both sit on the price chart. The homodyne period is limited between 6 and 50 bars inside the calculation. You do not set that period.
First five bars
Records 0 to 4 copy the median onto both lines. The adaptive step starts on record 5.
Limits are percents
50 and 5 in the settings are 0.50 and 0.05 in Ehlers' alpha. The slow limit is the floor on how small alpha may get.
MESA MA signalsFive patterns to know.
MAMA above FAMA
The fast line is above the slow one.
MAMA below FAMA
The fast line is under the slow one.
Lines nearly touching
Alpha has been small, or price has gone quiet, so FAMA has caught MAMA.
MAMA jumps toward price
The phase change was large enough to lift alpha off the slow limit.
Both lines flat
The median is not moving, so both lines hold. A flat median of 100 holds at 100.
MESA MA formulaHow it is calculated.
Copy the first five
Records 0 to 4 set both lines to the median price. The phase terms are still at rest.
Turn phase into alpha
Alpha is the fast limit divided by the phase change, and it is not allowed under the slow limit. At the defaults that floor is 0.05.
Smooth twice
MAMA steps toward the median by alpha. FAMA steps toward MAMA by half of alpha. A flat median of 100 stays at 100.
MESA MA settingsEvery setting, explained.
| Setting | Default | Range | What it changes |
|---|---|---|---|
| Fast limit (%) | 50 | 1 to 100 | The fastest alpha, as a percent. 50 means 0.50. The Signal lens changes this. |
| Slow limit (%) | 5 | 1 to 100 | The slowest alpha, as a percent. 5 means 0.05. Alpha is not allowed below it. |
| Source | Median (HL/2) | Any price, or volume | The price that is smoothed. The default is the median, (high + low) / 2. |
| Lines | MAMA #2196F3 at 2 px, FAMA #FF9800 at 1 px | Fixed | Both on the price chart. |
- Setting
- Fast limit (%)
- Default
- 50
- Range
- 1 to 100
- What it changes
- The fastest alpha, as a percent. 50 means 0.50. The Signal lens changes this.
- Setting
- Slow limit (%)
- Default
- 5
- Range
- 1 to 100
- What it changes
- The slowest alpha, as a percent. 5 means 0.05. Alpha is not allowed below it.
- Setting
- Source
- Default
- Median (HL/2)
- Range
- Any price, or volume
- What it changes
- The price that is smoothed. The default is the median, (high + low) / 2.
- Setting
- Lines
- Default
- MAMA #2196F3 at 2 px, FAMA #FF9800 at 1 px
- Range
- Fixed
- What it changes
- Both on the price chart.
Drag to see how the setting changes the lines and how many signals you get. Illustration on simulated data.
MESA MA strategiesUse it in 3 setups.
Fast line above the slow line
The adaptive average is above its own smooth. Traders often read that as the up side of this pair, next to the price trend.
A tight pair
The phase is not changing enough to lift alpha off the slow limit, or price has gone quiet.
One fast step is not a signal
FAMA moves at half the alpha. Traders often want the slow line to turn before they treat the jump as a trend.
MESA MA mistakesCommon mistakes.
Reading the first five bars as a signal
Those bars copy the median. The adaptive calculation has not started.
Treating 50 and 5 as bar lengths
They are percents. Divided by 100 they are the alpha limits 0.50 and 0.05.
Using FAMA as a price target
FAMA is a smooth of MAMA, not a level price is heading for.
MESA MA combinationsPair it with these.
MESA MA + VIDYA
VIDYA's speed is R-squared. MAMA's speed is the cycle phase change.
MESA MA + KAMA
KAMA uses an efficiency ratio. MAMA uses Ehlers' homodyne discriminator.
MESA MA + EMA
An EMA has one fixed alpha. MAMA's alpha moves between the slow and fast limits.
MESA MA + FRAMA
FRAMA adapts from a fractal dimension. MAMA adapts from phase.
MESA MA FAQQuestions traders ask.
What are the MESA settings?
Fast limit 50, slow limit 5, source median. 50 and 5 are percents: alpha limits of 0.50 and 0.05.
Why do the first bars sit on price?
Records 0 to 4 copy the median onto both lines. The phase math starts on record 5.
What happens on a flat median?
Both lines stay at that price. A median of 100 stays at 100, before and after record 5.
What is FAMA?
A second smooth of MAMA, using half of MAMA's alpha. It is the slower line, #FF9800.
Can alpha get smaller than 0.05?
Not at the default slow limit. Alpha is raised to the slow limit when the phase formula would go under it.
Does it repaint?
No. A closed bar stays. The live bar moves until it closes.
Who created it?
John F. Ehlers, "MESA Adaptive Moving Averages", Stocks & Commodities, September 2001. Also in Rocket Science for Traders (Wiley, 2001).
What timeframe can I use?
Any. The internal period is measured in bars and is limited to between 6 and 50 bars of whatever chart you have open.
Related indicatorsMore trend tools.
All trend indicatorsTry MESA MA on a live chart.
Free. No download.
Works in your browser and on iPhone too.