提交 f7e1b304 编写于 作者: Z zengbin93

修复三买识别 Bug

上级 3b8cc053
......@@ -4,7 +4,7 @@ from .analyze import KlineAnalyze, SolidAnalyze
from .ta import ma, macd, boll
__version__ = "0.2.9"
__version__ = "0.2.10"
__author__ = "zengbin93"
__email__ = "zeng_bin8888@163.com"
......
......@@ -2,7 +2,6 @@
import traceback
from copy import deepcopy
import pandas as pd
from datetime import datetime
from .ta import macd
......@@ -753,7 +752,7 @@ class SolidAnalyze(object):
if last_xd['fx_mark'] == 'd' and last_xd['xd'] > zs_g:
# 最后一个向下线段已经在本级别结束的情况
detail['出现时间'] = last_xd['dt']
price = last_xd[-1]['xd']
price = last_xd['xd']
detail["基准价格"] = price
# 确保当前价格在容差范围内
if (1 - tolerance) * price <= ka.kline[-1]['close'] <= (1 + tolerance) * price:
......@@ -815,7 +814,7 @@ class SolidAnalyze(object):
if last_xd['fx_mark'] == 'g' and last_xd['xd'] < zs_d:
# 最后一个向上线段已经在本级别结束的情况
detail['出现时间'] = last_xd['dt']
price = last_xd[-1]['xd']
price = last_xd['xd']
detail["基准价格"] = price
# 确保当前价格在容差范围内
if (1 - tolerance) * price <= ka.kline[-1]['close'] <= (1 + tolerance) * price:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册