kaufmansAMA() 函数
kaufmansAMA()
使用输入表中的值计算考夫曼自适应移动平均线 (KAMA)。
考夫曼自适应移动平均线是一种趋势跟踪指标,旨在考虑市场噪音或波动。
函数类型签名
(<-tables: stream[A], n: int, ?column: string) => stream[B] where A: Record, B: Record
有关详细信息,请参阅 函数类型签名。
参数
n
(必需) 用于计算的周期或点数。
column
要操作的列。默认为 _value
。
tables
输入数据。默认为管道转发的数据 (<-
)。
示例
计算输入数据的考夫曼自适应移动平均线
import "sampledata"
sampledata.int()
|> kaufmansAMA(n: 3)
此页面对您有帮助吗?
感谢您的反馈!