experimental.kaufmansAMA() function

The experimental.kaufmansAMA() function is subject to change at any time. By using this function, you accept the risks of experimental functions.

The experimental.kaufmansAMA() function calculates the Kaufman’s Adaptive Moving Average (KAMA) of input tables using the _value column in each table.

Function type: Transformation

import "experimental"

experimental.kaufmansAMA(n: 10)

Kaufman’s Adaptive Moving Average is a trend-following indicator designed to account for market noise or volatility.



The period or number of points to use in the calculation.

Data type: Integer


import "experimental"

experimental.from(bucket: "example-bucket"):
  |> range(start: -7d)
  |> kaufmansAMA(n: 10)

Set your InfluxDB URL

Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.