MESA adaptive moving average

MESA MA
Indicator

TrendOn the price chartFree on ChartLabs

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.

Example market1hIndicatorsAtlas AIMESA MAchartlabs.co/charts
Atlas reads it

MAMA is below FAMA (67,242.9).

MAMA 67,242.9 · FAMA 69,150.8

Atlas reads it

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.

1Bullish lean

MAMA above FAMA

The fast line is above the slow one.

2Bearish lean

MAMA below FAMA

The fast line is under the slow one.

3Inconclusive

Lines nearly touching

Alpha has been small, or price has gone quiet, so FAMA has caught MAMA.

4Inconclusive

MAMA jumps toward price

The phase change was large enough to lift alpha off the slow limit.

5Inconclusive

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.

MAMA=α×price+(1−α)×MAMA
STEP 1

Copy the first five

Records 0 to 4 set both lines to the median price. The phase terms are still at rest.

STEP 2

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.

STEP 3

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.

SettingDefaultRangeWhat it changes
Fast limit (%)501 to 100The fastest alpha, as a percent. 50 means 0.50. The Signal lens changes this.
Slow limit (%)51 to 100The slowest alpha, as a percent. 5 means 0.05. Alpha is not allowed below it.
SourceMedian (HL/2)Any price, or volumeThe price that is smoothed. The default is the median, (high + low) / 2.
LinesMAMA #2196F3 at 2 px, FAMA #FF9800 at 1 pxFixedBoth 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.
505 fast limit
70,20866,82563,44360,06164,803.7

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

WhileMAMAis aboveFAMA

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

IfMAMAandFAMAtouchthenalpha has been small

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

IfMAMAjumps toward pricethenwait for FAMA

FAMA moves at half the alpha. Traders often want the slow line to turn before they treat the jump as a trend.

Test a rule in the Strategy TesterFree with 1 year of history. Past results do not guarantee future results.

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 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 indicators

Try MESA MA on a live chart.
Free. No download.

Works in your browser and on iPhone too.

Example market1h
MAMA