FRAMA
Indicator
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.
Price is above FRAMA.
FRAMA 64,275.5
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.
Close above FRAMA
The close is above the adaptive average.
Close under FRAMA
The close is under the adaptive average.
Line tight to price
The recent range is smooth enough that the constant is fast, so the line sits close to the close.
Line left behind in a chop
The range is jagged, the constant is slow, and the line barely moves while price wiggles.
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.
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.
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.
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.
| Setting | Default | Range | What it changes |
|---|---|---|---|
| Length | 16 | 2 to 5,000 | Bars in the range window. The minimum is 2. The Signal lens on this page changes this, and it will not go below 2. |
| Source | Close | Any price, or volume | What gets averaged. The fractal speed still uses high and low. |
| Line | Pink #E91E63, 2 px | Fixed | One 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.
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
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
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
A fast constant is the trend case Ehlers described. The line near price is the trend, not a separate signal.
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 + EMA 16
A fixed-speed average of the same length, so you can see when FRAMA slows down.
FRAMA + ATR
ATR is another view of the range FRAMA is measuring for its speed.
FRAMA + ADX
ADX agrees or disagrees that the smooth patch FRAMA is tracking is a trend.
FRAMA + KAMA
Another adaptive average, this one sped up by an efficiency ratio instead of the fractal dimension.
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 indicatorsTry FRAMA on a live chart.
Free. No download.
Works in your browser and on iPhone too.