1 Star 4 Fork 13

王布衣/pandas

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
ma.go 302 Bytes
Copy Edit Raw Blame History
王布衣 authored 2023-02-18 15:26 . !68修订部分问题, 清理package
package formula
import (
"gitee.com/quant1x/pandas/stat"
)
// MA 计算移动均线
// 求序列的N日简单移动平均值, 返回序列
func MA(S stat.Series, N any) []stat.DType {
return S.Rolling(N).Mean().DTypes()
}
func MA2(S stat.Series, N any) stat.Series {
return S.Rolling(N).Mean()
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/quant1x/pandas.git
git@gitee.com:quant1x/pandas.git
quant1x
pandas
pandas
v0.8.3

Search