Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

分析家周期统计类的函数增加支持周期数组 #48

Open
jones2000 opened this issue May 12, 2020 · 6 comments
Open

分析家周期统计类的函数增加支持周期数组 #48

jones2000 opened this issue May 12, 2020 · 6 comments

Comments

@jones2000
Copy link
Owner

目前好多周期类统计的函数只支持单数值周期,不支持数组周期,
如MA(data,n) n是周期。
n分2种数值类型

  1. 一个单数值如10,
  2. n也可以是一个数组, 如[10, 5 ,6 ......] 统计不同周期数据

开一个坑,逐步对这些函数支持周期数组 (c++, js , py 这3个版本统一增加)

@jones2000
Copy link
Owner Author

MA, COUNT, SUM
支持了

@jones2000
Copy link
Owner Author

EMA
支持了

EMA算法
EMA(N) = 2/(N+1)*C + (N-1)/(N+1)*EMA', EMA'为前一天的ema;

@jones2000
Copy link
Owner Author

SMA
支持了

SMA(X,N,M) X的N日移动平均,M为权重,如Y=(XM+Y'(N-M))/N

@jones2000
Copy link
Owner Author

EXIST
支持了

@jones2000
Copy link
Owner Author

WMA
支持了

@jones2000
Copy link
Owner Author

BACKSET,LLVBARS, HHVBARS
支持了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant