kaufmansAMA() function

Warning! This page documents an earlier version of Flux, which is no longer actively developed. Flux v0.65 is the most recent stable version of Flux.

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

Function type: Aggregate

kaufmansAMA(
  n: 10,
  columns: ["_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: "telegraf/autogen"):
  |> range(start: -7d)
  |> kaufmansAMA(
    n: 10,
    column: "_value"
  )

KAUFMANS_ADAPTIVE_MOVING_AVERAGE