content/flux/v0/stdlib/universe/chandemomentumoscillator.md
chandeMomentumOscillator() applies the technical momentum indicator developed
by Tushar Chande to input data.
The Chande Momentum Oscillator (CMO) indicator does the following:
For each input table with x rows, chandeMomentumOscillator() outputs a
table with x - n rows.
(<-tables: stream[A], n: int, ?columns: [string]) => stream[B] where A: Record, B: Record
{{% caption %}} For more information, see Function type signatures. {{% /caption %}}
({{< req >}}) Period or number of points to use in the calculation.
List of columns to operate on. Default is ["_value"].
Input data. Default is piped-forward data (<-).
import "sampledata"
sampledata.int()
|> chandeMomentumOscillator(n: 2)