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

[Feature] k线更新的时候,指标的数据是全部重新从头计算一遍的吗? #535

Closed
heimo88 opened this issue Feb 27, 2024 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@heimo88
Copy link

heimo88 commented Feb 27, 2024

需求描述

我看代码好像是 每次update 更新k线数据,调用各个指标的 calc 函数,重新遍历一次所有数据计算的吗?
可能是我看的不对,如果是只更新最新的指标数据,请忽略!
感谢作者的付出!

具体实现

这个应该可以第一次计算全部,然后下次更新只计算 新更新部分的数据吧,或者是根据设置的周期更新最新的数据,如果历史数据很多的话,几秒更新一次数据是不是循环太多次了。

@liihuu
Copy link
Member

liihuu commented Mar 3, 2024

#203

@liihuu liihuu added the duplicate This issue or pull request already exists label Mar 3, 2024
@liihuu liihuu closed this as completed Mar 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants