kaufmansAMA() function
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)
Was this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for Flux and this documentation. To find support, use the following resources:
InfluxDB Cloud customers can contact InfluxData Support.