Adaptive & Advanced Systems~12 min+30 XP

Adaptive Techniques

The problem with fixed parameters

Every indicator you've learned so far uses fixed parameters: a 14-period RSI, a 20-period Bollinger Band, a 12/26 MACD. Those defaults work on average, but markets aren't average — they alternate between trending and choppy regimes, between low and high volatility. A 20-day moving average that smooths noise beautifully in a trend becomes agonizingly slow in a range.

Kaufman's insight:

Noise is the erratic price movement that can be seen on any chart as up-and-down price changes within a trend or during a sideways period. — Kaufman, Trading Systems and Methods

The goal of adaptive techniques is to measure noise in real time and automatically adjust indicator speed accordingly. When the market trends cleanly (low noise), use a fast indicator. When it chops (high noise), slow down to filter the garbage. The system does the adjusting — you don't.

The Efficiency Ratio (ER)

Before you can adapt, you need to measure. Kaufman's Efficiency Ratio is the key:

ER=PricetPricetni=1nPriceiPricei1ER = \frac{|\text{Price}_{t} - \text{Price}_{t-n}|}{\sum_{i=1}^{n} |\text{Price}_{i} - \text{Price}_{i-1}|}

The numerator is the net price change over nn periods (the signal). The denominator is the sum of all bar-to-bar changes over the same period (the total path traveled).

Kaufman explains:

The efficiency ratio has the value of 1 when prices move in the same direction for the full n periods, and a value of 0 when prices are unchanged over the n periods. — Kaufman, Trading Systems and Methods

  • ER near 1.0: Perfect trend. Price moved from A to B in a straight line.
  • ER near 0.0: Pure noise. Price moved a lot bar-to-bar but ended up where it started.
  • ER around 0.3–0.5: Typical range — some trend, some noise.

The ER is sometimes called fractal efficiency because it measures what fraction of the total path was "useful" directional movement. It's the signal-to-noise ratio of price.

Kaufman's Adaptive Moving Average (KAMA)

KAMA uses the ER to dynamically adjust its smoothing constant between a fast MA and a slow MA.

KAMAt=KAMAt1+SCt×(CtKAMAt1)\text{KAMA}_t = \text{KAMA}_{t-1} + SC_t \times (C_t - \text{KAMA}_{t-1})

where the smoothing constant SCSC is:

SC=[ER×(fastcslowc)+slowc]2SC = [ER \times (\text{fast}_c - \text{slow}_c) + \text{slow}_c]^2

The constants fastc\text{fast}_c and slowc\text{slow}_c are the smoothing constants for the fast and slow EMA periods. Kaufman's defaults: fast = 2 periods (fastc=2/3\text{fast}_c = 2/3), slow = 30 periods (slowc=2/31\text{slow}_c = 2/31).

How it works:

  • When ER is high (trending), SC approaches the fast constant → KAMA responds quickly.
  • When ER is low (choppy), SC approaches the slow constant → KAMA barely moves.
  • The squaring of the scaled smoothing constant makes the transition more aggressive — noise is suppressed harder.

The result: KAMA hugs price tightly during trends but goes nearly flat during choppy ranges. It eliminates most whipsaw signals that plague regular MAs, at the cost of slightly delayed entries when a new trend begins.

KAMA versus SMA and EMA

CharacteristicSMAEMAKAMA
SpeedFixedFixed (front-weighted)Dynamic (noise-adjusted)
Whipsaws in rangesManyFewer (but still present)Minimal
Lag at trend startModerateLowerSlightly higher (slow constant kicks in)
Lag during trendModerateModerateLow (fast constant takes over)
Best useSimple trend IDResponsive trend-followingTrend-following in noisy markets

KAMA isn't "better" in all cases — in a clean, persistent trend, a regular EMA catches the move faster. KAMA shines when the market alternates between trending and ranging, which is most of the time.

Adaptive oscillators

The same noise-adaptation principle can be applied to oscillators. Kaufman documents the concept:

An adaptive stochastic can be created using the basic stochastic formula by changing the look-back number of days in a way similar to KAMA, based on market noise. — Kaufman, Trading Systems and Methods

Instead of a fixed 14-period RSI or Stochastic, the look-back period expands when the market is noisy (reducing false signals) and contracts when it's trending (increasing responsiveness). The ER drives the adaptation in the same way it drives KAMA.

Other adaptive approaches Kaufman discusses:

  • VIDYA (Variable Index Dynamic Average): Chande's variant that uses a volatility ratio instead of ER.
  • MESA (Maximum Entropy Spectral Analysis): John Ehlers' approach that measures the dominant cycle period and uses it to set the indicator lookback. More computationally complex but explicitly cycle-aware.

All share the same philosophy: let the market tell you what period to use, rather than choosing a fixed one.

Walk-forward adaptation

Kaufman also describes a process-based approach, distinct from formula-based adaptation:

An adaptive method can be a process as well as a formula. Rather than using a ratio or a sliding scale to change the smoothing constant, you can retest your system regularly using more recent data, as in walk-forward testing. — Kaufman, Trading Systems and Methods

This connects directly to the walk-forward lesson: instead of building an indicator that self-adjusts, you periodically re-optimize your fixed-parameter system on recent data. Both approaches are "adaptive" — one is continuous (KAMA), the other is periodic (walk-forward).

Practical application

  1. Use KAMA as a trend filter. When KAMA slopes up, only take longs. When it slopes down, only take shorts. When it's flat (ER is low), stay out — the market is choppy.

  2. Plot ER directly. ER below 0.3 = range environment (focus on mean reversion). ER above 0.5 = trending environment (focus on breakouts and trend-following).

  3. Combine KAMA with a regular EMA. KAMA crossing above a slow EMA can give cleaner crossover signals than EMA-on-EMA, because KAMA stays flat in noise while the EMA whipsaws.

  4. Apply adaptive periods to RSI. Instead of fixed 14-period RSI, use RSI(n)\text{RSI}(n) where nn varies with ER: high ER → short period (responsive), low ER → long period (smooth).

Quick check

Question 1 / 30 correct

A stock has moved from $50 to $55 over 10 days, but the sum of all daily absolute changes is $50. What's the Efficiency Ratio?

What you now know

  • The Efficiency Ratio measures signal-to-noise: 1.0 = perfect trend, 0.0 = pure noise.
  • KAMA dynamically adjusts its smoothing constant using ER — fast in trends, flat in noise.
  • The same adaptation principle applies to oscillators (RSI, Stochastic) — expand the lookback in noise, contract it in trends.
  • VIDYA and MESA are alternative adaptive approaches using volatility ratios and cycle detection.
  • Adaptation can be formula-based (KAMA) or process-based (walk-forward re-optimization).

Next: Monte Carlo Methods — randomized equity curves, parameter sampling, and the confidence intervals that tell you whether your strategy's edge is real or a statistical ghost.

Press complete when you're done.
Back to tree