Documentation

kaufmansAMA() function

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

Function type: Transformation

kaufmansAMA(
  n: 10,
  column: "_value"
)

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

Parameters

n

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

Data type: Integer

column

The column to operate on. Defaults to "_value".

Data type: String

Examples

from(bucket: "example-bucket"):
  |> range(start: -7d)
  |> kaufmansAMA(
    n: 10,
    column: "_value"
  )

Set your InfluxDB URL

Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.