Concept

Adaptive-lookback MA

Adaptive-lookback MA is a Trend concept. The Library holds 9 implementations, each one a working definition you can pull into Quant.

Top Adaptive-lookback MA indicators

9 total

What is an Adaptive-lookback MA?

An adaptive-lookback MA (often just "adaptive moving average") is a moving average whose effective length is recomputed on every bar rather than fixed in advance. The calculation measures the current state of the market (how efficiently price is travelling, how volatile it is, or which cycle length dominates) and maps that reading onto a smoothing constant between a fast bound and a slow bound. Most variants keep the familiar EMA recursion, where each new value moves a fraction alpha toward price, and simply let alpha vary from bar to bar.

What separates the family members is the driver. Perry Kaufman's KAMA scales alpha with the efficiency ratio: the absolute net price change over a window divided by the sum of absolute bar-to-bar changes. Tushar Chande's VIDYA uses a momentum or volatility ratio, John Ehlers' FRAMA converts the fractal dimension of the price path into alpha, MAMA/FAMA adapts through the rate of change of the cycle phase measured by a Hilbert transform, and the McGinley Dynamic varies its speed through a price-to-average ratio in its divisor.

The design matters because it attacks the oldest tradeoff in trend following: short lookbacks track price closely but whipsaw through every range, while long lookbacks filter the chop and then lag every turn. An adaptive lookback tries to buy both properties with one line, hugging price when movement is directional and going flat when it is not. The adaptation is reactive rather than predictive, so a fresh regime change still costs several bars of lag.

How to calculate an Adaptive-lookback MA

Every member of the family follows the same three-part recipe (measure, map, smooth); the variants differ only in what they measure in step one.

  1. 1Measure market state over a reference window. KAMA computes the efficiency ratio (absolute net change divided by the sum of absolute per-bar changes), VIDYA the absolute value of a momentum reading or a volatility ratio, FRAMA an estimate of fractal dimension, MAMA the rate at which the cycle phase advances from bar to bar.
  2. 2Map that measurement onto a smoothing constant between a fast bound and a slow bound, so a perfectly efficient move produces the fast setting and pure noise produces the slow one. KAMA additionally squares the scaled constant, pushing choppy readings even closer to zero.
  3. 3Run the recursion each bar: the new average equals the previous average plus the smoothing constant times the difference between price and the previous average. Because the constant changes every bar, the effective lookback stretches and shrinks continuously.
  4. 4Read the output as both average and state signal: a line that has gone flat is reporting inefficient, rangebound conditions, while a line that turns and tracks price closely is reporting directional movement.

How traders use it

  • As a self-throttling trend filter: take longs only above the line and shorts only below it, and let the slow, flat stretches in ranges suppress the signals a fixed-length filter would keep generating. The filter is quieter in chop, not silent; ranges still produce some crossings.
  • As dynamic support and resistance: in a directional move the lookback shortens and the line rides close behind price, so pullbacks into it are watched for continuation. Once the line flattens, that read is void; a flat adaptive MA is a chop warning, not a level.
  • Inside crossover systems, replacing one or both fixed averages so the pair separates decisively in trends and stays intertwined in ranges. This tends to reduce whipsaw trades rather than eliminate them, and it adds parameters that need honest out-of-sample checking.
  • As the smoothing engine inside other tools: the same adapt-then-smooth recursion is routinely applied to oscillator inputs, trailing stops, and band midlines, so the downstream tool inherits the fast-in-trend, slow-in-chop behavior.

Adaptive-lookback MA vs neighboring averages

EMA: An EMA fixes its smoothing constant at design time; speed is a permanent choice. An adaptive-lookback MA makes that choice at runtime, sliding between fast and slow bounds, so one line can act like a short EMA in trends and a long one in ranges.

KAMA: KAMA is the archetype, not a synonym for the family. It is one specific adaptation rule (the efficiency ratio scaled between fast and slow constants, then squared). Other members reach the same goal through volatility, fractal dimension, or measured cycle length.

HMA: The HMA is fast everywhere: a fixed weighted construction that reduces lag unconditionally, in trend and chop alike. An adaptive MA is fast only when conditions justify it, deliberately accepting lag in ranges to avoid whipsaw.

Adaptive Parameterization: Adaptive parameterization is the general technique of letting any setting (lengths, multipliers, thresholds) respond to market state. An adaptive-lookback MA is that technique applied to a single parameter of a single tool: a moving average's length.

More Adaptive-lookback MA implementations

Related concepts · Moving-average lineage

Concept family

Trend

100 concepts mapped · 88 in the Library

Adaptive-lookback MA FAQ

Which adaptive moving average is best?

None dominates across markets. Each variant adapts through a different lens (efficiency for KAMA, momentum or volatility for VIDYA, fractal dimension for FRAMA, cycle period for MAMA) and each misreads conditions its measurement cannot see. Test candidates on your own instrument and timeframe, and remember that extra adaptive machinery means extra ways to overfit.

Do adaptive moving averages eliminate lag?

No, they redistribute it. In a clean trend the smoothing constant rises toward its fast bound and lag shrinks; in chop it falls and the line lags heavily on purpose. The switch itself is also late, because the driving measurement needs several bars of evidence before alpha responds, so the first leg of a new trend is still caught behind.

How does an adaptive moving average choose its length?

It does not hold a literal bar count. Each bar the indicator computes a market measurement over a reference window (an efficiency ratio, a volatility ratio, a fractal-dimension estimate) and scales it into a smoothing constant between fixed fast and slow bounds. The "length" is the effective lookback implied by that constant, and it changes continuously.

Do adaptive moving averages repaint?

Properly built ones do not. Each value is computed from current and past bars only, and once a bar closes the value is final. Like any indicator, the line moves during a still-open bar, and a variant that referenced future bars or recalculated history would repaint, but that is an implementation fault rather than a property of the concept.

When do adaptive moving averages fail?

Two conditions are hostile. A slow, grinding trend can score as inefficient (little net progress relative to distance travelled), keeping the line slow so it trails far behind a move that is real. A fast, wide range can briefly score as trending on each swing, speeding the line up exactly when whipsaw risk peaks. Both are costs of reacting to data instead of predicting it.

Build Adaptive-lookback MA your way.

Quant writes, tests, and refines it with you — then it runs on LuxAlgo charting or ports to TradingView.