Fractal Adaptive Moving Average

FRAMA
Indicator

TrendOn the price chartFree on ChartLabs

FRAMA is an exponential average whose speed follows how jagged the recent high-low range is. It tracks a trend more closely and slows when the range is choppy.

Created by John F. Ehlers, 2005. Reviewed by the ChartLabs team, updated Nov 2026.

Example market1hIndicatorsAtlas AIFRAMAchartlabs.co/charts
Atlas reads it

Price is above FRAMA.

FRAMA 64,275.5

Atlas reads it

Price is above FRAMA.

FRAMA 64,275.5

Illustration on simulated data.

Fractal Adaptive Moving AverageWhat is the FRAMA indicator?

FRAMA draws one pink line (#E91E63, 2 px) on the price chart. The default length is 16 and the default source is the close. The high and the low always supply the range, even if you change the source.

Split the last 16 bars into two halves of 8. Compare the high-low range of each half, per bar, with the range of the whole window, per bar. The ratio is a fractal dimension. Ehlers turns it into a smoothing constant, clamped between 0.01 and 1. The line is then an exponential average of the source at that speed. For the first 15 bars the line equals the source. The adaptive recursion starts on record 15, the 16th bar.

A straight trend has a small dimension and a fast constant, so the line keeps up with price. A jagged window has a slower constant, so the line hesitates. An odd length is allowed: the newer half is rounded down, and the older half keeps the rest.

The first 15 bars are the price

Until the window exists there is nothing to measure, so ChartLabs plots the source itself. Do not read those bars as a smoothed average.

Dimension from the range

The speed uses high and low. The average uses the source. A quiet range slows the line even if you set the source to the close.

FRAMA signalsFive patterns to know.

1Bullish lean

Close above FRAMA

The close is above the adaptive average.

2Bearish lean

Close under FRAMA

The close is under the adaptive average.

3Bullish lean

Line tight to price

The recent range is smooth enough that the constant is fast, so the line sits close to the close.

4Inconclusive

Line left behind in a chop

The range is jagged, the constant is slow, and the line barely moves while price wiggles.

5Inconclusive

Close crosses FRAMA

Price has moved through the adaptive average. In a chop the constant is slow, so this cross is late.

FRAMA formulaHow it is calculated.

D=ln(N1+N2)−lnN3ln2α=exp(−4.6(D−1))
STEP 1

Measure three ranges

N1 is the newest half's high-low range divided by half the length. N2 is the older half, the same way. N3 is the whole window's range divided by the length. The default length is 16, so each half is 8.

STEP 2

Turn the ratio into a speed

D is (ln(N1 + N2) minus ln N3) / ln 2. Alpha is exp(-4.6 times (D - 1)), clamped to the range 0.01 to 1. If a range is not positive, D is taken as 0.

STEP 3

Average the source

FRAMA is alpha times the source plus (1 - alpha) times the previous FRAMA. Until record 15, the line equals the source.

FRAMA settingsEvery setting, explained.

SettingDefaultRangeWhat it changes
Length162 to 5,000Bars in the range window. The minimum is 2. The Signal lens on this page changes this, and it will not go below 2.
SourceCloseAny price, or volumeWhat gets averaged. The fractal speed still uses high and low.
LinePink #E91E63, 2 pxFixedOne line on the price chart.
Setting
Length
Default
16
Range
2 to 5,000
What it changes
Bars in the range window. The minimum is 2. The Signal lens on this page changes this, and it will not go below 2.
Setting
Source
Default
Close
Range
Any price, or volume
What it changes
What gets averaged. The fractal speed still uses high and low.
Setting
Line
Default
Pink #E91E63, 2 px
Range
Fixed
What it changes
One line on the price chart.
1635 turns in view
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.

FRAMA strategiesUse it in 3 setups.

Side of the line as the bias

Whilethe close is aboveFRAMAfavourlongs

Above the line, price is above the adaptive average. In a smooth trend the line is close, so the side changes quickly.

Cross after a quiet line

IfFRAMAhas been flatandprice crosses itthenthe range has opened

A slow constant means the window was jagged. A cross that finally happens has had to travel to a line that would not move.

Hold while the line is keeping up

WhileFRAMAtracks pricehold

A fast constant is the trend case Ehlers described. The line near price is the trend, not a separate signal.

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

FRAMA mistakesCommon mistakes.

Reading the first 15 bars as the average

Those bars are the source copied onto the line, because the window does not exist yet.

Expecting it to go flat in every range

The constant slows when the range is jagged on this measure. A smooth drift, even a small one, speeds it up.

Using length 2 to make it fast

Two bars is the minimum. The dimension of two bars is a noisy speed, and the line jumps.

FRAMA combinationsPair it with these.

FRAMA FAQQuestions traders ask.

What are the default FRAMA settings?

Length 16 and source close. High and low are always used for the speed.

What makes it speed up or slow down?

How the high-low range of the two halves compares with the range of the whole window. A smoother range speeds the average up. A jagged one slows it down. The constant is clamped between 0.01 and 1.

Why does the line match the close at the start?

Until 16 bars exist there is no window. Records 0 through 14 equal the source. The recursion starts on record 15.

What happens with an odd length?

The newer half rounds down, and the older half keeps the remaining bars. Ehlers specified an even length. ChartLabs still accepts an odd one.

Does the source change the speed?

No. The speed is always from high and low. The source is what gets averaged.

Is FRAMA leading or lagging?

Lagging. The dimension looks back over the length, and the average follows the source.

Does FRAMA repaint?

No. A closed bar keeps its value. The live bar moves until it closes, and so does its place in the window.

What timeframe can I use?

Any. Ehlers published it for price series in general. A short chart makes the 16-bar dimension noisier.

Who created FRAMA?

John F. Ehlers, Technical Analysis of Stocks & Commodities, October 2005.

Related indicatorsMore trend tools.

All trend indicators

Try FRAMA on a live chart.
Free. No download.

Works in your browser and on iPhone too.

Example market1h
FRAMA (16, close)