experimental.kaufmansAMA() 函数
experimental.kaufmansAMA() 随时可能 发生变化。
experimental.kaufmansAMA() 计算输入表的 Kaufman 自适应移动平均 (KAMA),使用每个表中的 _value 列。
Kaufman的自适应移动平均线是一种趋势跟随指标,旨在考虑市场噪音或波动性。
函数类型签名
(<-tables: stream[{A with _value: B}], n: int) => stream[{A with _value: float}] where B: Numeric
有关更多信息,请参见 Function type signatures。
参数
n
(必填) 用于计算的周期或点数。
表格
输入数据。默认是管道转发数据 (<-).
示例
计算输入表的KAMA
import "experimental"
import "sampledata"
sampledata.int()
|> experimental.kaufmansAMA(n: 3)