提交 d6b4170c 编写于 作者: Z zengbin93

新增第一、二买卖点识别


Former-commit-id: dcac33f14d16cb7e5e927dacd9925be966a6a6df
上级 22e83c44
......@@ -55,7 +55,8 @@ def is_bei_chi(ka, zs1, zs2, direction="down", mode="bi"):
bi 判断两笔之间是否存在背驰
:return:
"""
df = macd(ka.kline)
df = pd.DataFrame(ka.kline)
df = macd(df)
k1 = df[(df['dt'] >= zs1[0]) & (df['dt'] <= zs1[1])]
k2 = df[(df['dt'] >= zs2[0]) & (df['dt'] <= zs2[1])]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册