Skip to content

IIndicatorsAccessor.KaufmanAdaptiveMovingAverage

method · IIndicatorsAccessor · cAlgo.API.Internals

DesktopCLICloud

The Kaufman's Adaptive Moving Average (KAMA) indicator is a type of adaptive moving average designed to adjust its smoothing factor based on market volatility

Overloads

KaufmanAdaptiveMovingAverage(int periods, int fastPeriods, int slowPeriods)

The Kaufman's Adaptive Moving Average (KAMA) indicator is a type of adaptive moving average designed to adjust its smoothing factor based on market volatility

KaufmanAdaptiveMovingAverage KaufmanAdaptiveMovingAverage(int periods, int fastPeriods, int slowPeriods)
api.Indicators.KaufmanAdaptiveMovingAverage(periods: int, fastPeriods: int, slowPeriods: int) -> KaufmanAdaptiveMovingAverage

Parameters

Name C# type Python type Description
periods int int The periods used for the calculation. Must be an even number.
fastPeriods int int The fast moving average period
slowPeriods int int The slow moving average period

Returns KaufmanAdaptiveMovingAverage — The KAMA indicator instance.

Examples

var kama = Indicators.KaufmanAdaptiveMovingAverage(10, 2, 30);
Print("KAMA(10, 2, 30): {0}", kama.Result.LastValue);
kama = api.Indicators.KaufmanAdaptiveMovingAverage(10, 2, 30)
api.Print(f"KAMA(10, 2, 30): {kama.Result.LastValue}")

KaufmanAdaptiveMovingAverage(DataSeries source, int periods, int fastPeriods, int slowPeriods)

The Kaufman's Adaptive Moving Average (KAMA) indicator is a type of adaptive moving average designed to adjust its smoothing factor based on market volatility

KaufmanAdaptiveMovingAverage KaufmanAdaptiveMovingAverage(DataSeries source, int periods, int fastPeriods, int slowPeriods)
api.Indicators.KaufmanAdaptiveMovingAverage(source: DataSeries, periods: int, fastPeriods: int, slowPeriods: int) -> KaufmanAdaptiveMovingAverage

Parameters

Name C# type Python type Description
source DataSeries DataSeries The source data used for calculation.
periods int int The periods used for the calculation. Must be an even number.
fastPeriods int int The fast moving average period
slowPeriods int int The slow moving average period

Returns KaufmanAdaptiveMovingAverage — The KAMA indicator instance.

Examples

var kama = Indicators.KaufmanAdaptiveMovingAverage(Bars.TypicalPrices, 10, 2, 30);
Print("KAMA of typical prices: {0}", kama.Result.LastValue);
kama = api.Indicators.KaufmanAdaptiveMovingAverage(api.Bars.TypicalPrices, 10, 2, 30)
api.Print(f"KAMA of typical prices: {kama.Result.LastValue}")