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

只有分型和笔,没有线段和中枢算法吗? #98

Open
urna opened this issue Aug 3, 2022 · 5 comments
Open

只有分型和笔,没有线段和中枢算法吗? #98

urna opened this issue Aug 3, 2022 · 5 comments

Comments

@urna
Copy link

urna commented Aug 3, 2022

只有分型和笔,没有线段和中枢算法吗?

@NoraGithub
Copy link
Contributor

#58 (comment)

背驰、盘整背驰、中枢之类的东西都融合到形态信号里面了

@urna
Copy link
Author

urna commented Feb 14, 2023 via email

@NoraGithub
Copy link
Contributor

class ZS:

@a-whitej
Copy link

a-whitej commented Jan 7, 2024

代码:000001
开始时间:20230101
结束时间:20240115
环境设置:
os.environ.setdefault('czsc_bi_change_th', "-1")
os.environ.setdefault('czsc_min_bi_len', "7")

from czsc.utils.sig import get_zs_seq
zss = get_zs_seq(bis)

错误:
中枢位置计算不正确,开始和结束是整个走势的开始和结束,非中枢的开始和结束时间。

计算结果如下:
[ZS(sdt=2023-01-30 00:00:00, sdir=向下, edt=2023-06-26 00:00:00, edir=向下, len_bis=5, zg=14.09, zd=13.1, gg=15.36, dd=11.15, zz=13.594999999999999), ZS(sdt=2023-06-26 00:00:00, sdir=向上, edt=2023-10-26 00:00:00, edir=向下, len_bis=2, zg=12.53, zd=11.15, gg=12.53, dd=10.3, zz=11.84), ZS(sdt=2023-10-26 00:00:00, sdir=向上, edt=2023-12-21 00:00:00, edir=向下, len_bis=2, zg=10.69, zd=10.3, gg=10.69, dd=8.99, zz=10.495000000000001), ZS(sdt=2023-12-21 00:00:00, sdir=向上, edt=2023-12-29 00:00:00, edir=向上, len_bis=1, zg=9.48, zd=8.99, gg=9.48, dd=8.99, zz=9.235)]

@urna
Copy link
Author

urna commented Jan 7, 2024 via email

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

3 participants