提交 9019694e 编写于 作者: Z zengbin93

0.5.3 update

上级 b426fedc
......@@ -3,6 +3,7 @@ from .analyze import KlineAnalyze, find_zs
def check_jing(fd1, fd2, fd3, fd4, fd5):
"""检查最近5个分段走势是否构成井
井的定义:
12345,五段,是构造井的基本形态,形成井的位置肯定是5,而5出井的
前提条件是对于向上5至少比3和1其中之一高,向下反过来; 并且,234
......@@ -26,9 +27,6 @@ def check_jing(fd1, fd2, fd3, fd4, fd5):
"start_dt": "",
"end_dt": "",
"power": 0, # 力度
"k_nums": 0,
"fx_nums": 0,
"bi_nums": 0,
"direction": "up",
"high": 0,
"low": 0,
......
# coding: utf-8
import sys
sys.path.insert(0, '.')
sys.path.insert(0, '..')
from czsc.signals import check_jing
def test_check_jing():
fd1 = {"start_dt": 0, "end_dt": 1, "power": 0, "direction": "up", "high": 0, "low": 0, "mode": "bi"}
fd2 = {"start_dt": 1, "end_dt": 2, "power": 0, "direction": "up", "high": 0, "low": 0, "mode": "bi"}
fd3 = {"start_dt": 2, "end_dt": 3, "power": 0, "direction": "up", "high": 0, "low": 0, "mode": "bi"}
fd4 = {"start_dt": 4, "end_dt": 5, "power": 0, "direction": "up", "high": 0, "low": 0, "mode": "bi"}
fd5 = {"start_dt": 5, "end_dt": 6, "power": 0, "direction": "up", "high": 0, "low": 0, "mode": "bi"}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册