kaufmansER() function

kaufmansER() computes the Kaufman’s Efficiency Ratio (KER) of values in the _value column for each input table.

Kaufman’s Efficiency Ratio indicator divides the absolute value of the Chande Momentum Oscillator by 100 to return a value between 0 and 1. Higher values represent a more efficient or trending market.

Function type signature
(<-tables: stream[A], n: int) => stream[{B with _value: float, _value: float}] where A: Record
For more information, see Function type signatures.



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


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


Compute the Kaufman’s Efficiency Ratio

import "sampledata"
    |> kaufmansER(n: 3)

View example input and output

Was this page helpful?

Thank you for your feedback!

Introducing InfluxDB 3.0

The new core of InfluxDB built with Rust and Apache Arrow. Available today in InfluxDB Cloud Dedicated.

Learn more

State of the InfluxDB Cloud Serverless documentation

The new documentation for InfluxDB Cloud Serverless is a work in progress. We are adding new information and content almost daily. Thank you for your patience!

If there is specific information you’re looking for, please submit a documentation issue.