The Kaufman Adaptive Moving Average is a version of the adaptive moving average based on the exponentially smoothed moving average combined with the original methods of detecting and applying volatility as a dynamically changing smoothing constant.
The indicator has two input parameters:
- Period - calculation period;
- Applied price - price used for calculations.
KAMA[i] = KAMA[i-1] + sc * (Price[i] - KAMA[i-1])
sc = (er * 0.6015 + 0.0645) * (er * 0.6015 + 0.0645), er = Abs(Price[i] - Price[i-Period+1]) / Sum1, and Sum1 = Sum(Abs(Price[i] - Price[i-1])) from (i-Period+1) to i