Merge branch 'master' of github.com:fasiondog/hikyuu into analysis

This commit is contained in:
fasiondog 2023-10-19 20:06:33 +08:00
commit 3a1a3f9687
2 changed files with 4 additions and 2 deletions

View File

@ -19,6 +19,8 @@ Hikyuu Quant Framework是一款基于C++/Python的开源量化交易研究框架
如果上述网站无法访问,请戳这里: `<http://fasiondog.gitee.io/hikyuu/>`_
感谢网友提供的 Hikyuu Ubuntu虚拟机环境, 百度网盘下载(提取码: ht8j): `<https://pan.baidu.com/s/1CAiUWDdgV0c0VhPpe4AgVw?pwd=ht8j>`_
祝贺 HIKYUU 入选 GITEE 最有价值开源项目 GVP
-----------------------------------------------

View File

@ -106,7 +106,7 @@ def draw(
def draw2(
block,
query=Query(-130),
ama1=AMA(n=10, fast_n=2, slow_n=30),
ama1=AMA(CLOSE(), n=10, fast_n=2, slow_n=30),
ama2=None,
n=10,
filter_n=20,
@ -146,7 +146,7 @@ def draw2(
lama.plot(axes=ax1, color='g', legend_on=True, kref=kdata)
if sg_type == 'CROSS':
fast_op = AMA(n=n)
fast_op = AMA(CLOSE(), n=n)
slow_op = EMA(n=2 * n)(fast_op)
sg = SG_Cross(fast_op, slow_op)
sg.plot(axes=ax1, kdata=kdata)