提交 dda28298 编写于 作者: Z zengbin93

0.3.2 修复线段

上级 25ed2713
......@@ -425,13 +425,13 @@ class KlineAnalyze(object):
continue
bi_m = [x for x in self.bi if k0['dt'] <= x['dt'] <= k['dt']]
if len(bi_m) == 2 and len(xd) >= 2:
k1 = xd[-2]
if (k1['fx_mark'] == 'g' and k1['xd'] < k['xd']) or \
(k1['fx_mark'] == 'd' and k1['xd'] > k['xd']):
xd.pop(-1)
xd.pop(-1)
xd.append(k)
# if len(bi_m) == 2 and len(xd) >= 2:
# k1 = xd[-2]
# if (k1['fx_mark'] == 'g' and k1['xd'] < k['xd']) or \
# (k1['fx_mark'] == 'd' and k1['xd'] > k['xd']):
# xd.pop(-1)
# xd.pop(-1)
# xd.append(k)
bi_r = [x for x in self.bi if x['dt'] >= k['dt']]
# 一线段内部至少三笔
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册