Kaufman's Adaptive Moving Average (KAMA)

From FxCodeBaseWiki
Jump to: navigation, search

Kaufman's Adaptive Moving Average (KAMA) was created by Perry J. Kaufman and presented in 1998 in his book "Trading Systems and Methods, 3rd Edition". The main advantage of KAMA over other moving averages is that it takes into consideration not only the direction, but also the market volatility. KAMA adjusts its length according to the prevailing market conditions.

Formula

KAMA is calculated by the formula:

<math>KAMA_{i} = KAMA_{i-1} + sc \times {Price - KAMA_{i-1}}</math>

where:

<math>\operatorname{KAMA_{i}}</math> is the value of KAMA in the current period.

<math>\operatorname{KAMA_{i—1}}</math> is the value of KAMA in the previous period.

<math>\operatorname{Price}</math> is the price in the current period.

<math>\operatorname{sc}</math> is the smoothing constant calculated each period by the formula:


<math>sc_{i} = (ER_{i} \times {(fastest - slowest) + slowest})^2</math>

and

<math>fastest = \dfrac{2}{\text {Fastest MA Period} + 1}</math>


<math>slowest = \dfrac{2}{\text {Slowest MA period} + 1}</math>


<math>ER_{i} = \dfrac{|Price_{t} - Price_{t-n}|}{\sum_{i}^{i-n} |Price_{t} - Price_{t-1}|}</math>

Usage

The ways of using KAMA are similar to all the moving averages (see Simple Moving Average (MVA, SMA), Exponential Moving Average (EMA)).

Comparing to Simple Moving Average (MVA, SMA), KAMA has less lagging and generates less false signals. Please see indicators on the chart below:

Click on image to enlarge

KAMA can also be used to smooth some other technical indicators.

See Also


This Article in Other Languages

Language: English  • español • français • русский • 中文 • 中文(繁體)‎