Documentation

kaufmansAMA() function

Flux 0.40.0+

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

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

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

column

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

tables

Input data. Default is piped-forward data (<-).

Examples

The following example uses data provided by the sampledata package to show how kaufmansAMA() transforms data.

import "sampledata"

sampledata.int()
  |> kaufmansAMA(n: 3)

View input and output


Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.