提交 3ae8230a 编写于 作者: Z zengbin93

修复笔识别:相邻顶底之间,顶必须大于底


Former-commit-id: 7aacdc5c53bbbac95069bff0ead0ea954e498ebe
上级 4e388bbe
......@@ -165,8 +165,8 @@ class KlineAnalyze(object):
bi.append(k)
else:
# 确保相邻两个顶底之间顶大于底
if (k0['fx_mark'] == 'g' and k['bi'] > k0['bi']) or \
(k0['fx_mark'] == 'd' and k['bi'] < k0['bi']):
if (k0['fx_mark'] == 'g' and k['bi'] >= k0['bi']) or \
(k0['fx_mark'] == 'd' and k['bi'] <= k0['bi']):
bi.pop(-1)
continue
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册