kaufmansAMA() function

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

*Function type: Transformation*

  1. kaufmansAMA(
  2. n: 10,
  3. column: "_value"
  4. )

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

  1. from(bucket: "telegraf/autogen"):
  2. |> range(start: -7d)
  3. |> kaufmansAMA(
  4. n: 10,
  5. column: "_value"
  6. )

Related articles