Skip to content

Commit

Permalink
修复第一、二买卖点识别
Browse files Browse the repository at this point in the history
Former-commit-id: 0da790c
  • Loading branch information
zengbin93 committed Feb 28, 2020
1 parent 8232fa6 commit 1e8d887
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions chan/analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,10 +360,10 @@ def __get_valid_xd(self, xd_p):
# 两个连续线段标记之间只有三笔的处理
lp2 = bi_m[-2]
rp2 = bi_r[1]
assert lp2['fx_mark'] == rp2['fx_mark']
if (p2['fx_mark'] == "g" and lp2['bi'] < rp2['bi']) or \
(p2['fx_mark'] == "d" and lp2['bi'] > rp2['bi']):
xd_v.append(p2)
if lp2['fx_mark'] == rp2['fx_mark']:
if (p2['fx_mark'] == "g" and lp2['bi'] < rp2['bi']) or \
(p2['fx_mark'] == "d" and lp2['bi'] > rp2['bi']):
xd_v.append(p2)
else:
xd_v.append(p2)
return xd_v
Expand Down

0 comments on commit 1e8d887

Please sign in to comment.