提交 6a5015de 编写于 作者: Z zengbin93

0.5.5 update

上级 83fcf7bf
......@@ -284,7 +284,7 @@ class KlineAnalyze:
:param kline: list or pd.DataFrame
:param name: str
:param bi_mode: str
new 新笔;old 老笔;默认值为 old
new 新笔;old 老笔;默认值为 new
:param max_xd_len: int
线段标记序列的最大长度
:param ma_params: tuple of int
......@@ -960,6 +960,9 @@ class KlineAnalyze:
p2['bi'] = p2.pop('fx')
elif mode == 'xd':
if not self.xd_list:
return None
p1 = self.xd_list[-1]
points = [x for x in self.bi_list[-60:] if x['dt'] >= p1['dt']]
if len(points) < 4:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册