From 4f768a335ab9f61e8b63d1e7bba88ea00a6c4315 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期一, 18 十二月 2023 16:24:21 +0800 Subject: [PATCH] 买入规则修改 --- test/test_code_attribute.py | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_code_attribute.py b/test/test_code_attribute.py index c3e02ed..26689ca 100644 --- a/test/test_code_attribute.py +++ b/test/test_code_attribute.py @@ -5,19 +5,19 @@ def is_too_high(datas): limit_up_price = round(datas[0]["close"] * 1.1, 2) datas.reverse() - is_new_high = code_nature_analyse.is_up_too_high_in_10d_with_limit_up(datas) + is_new_high = code_nature_analyse.is_price_too_high_in_days(datas,limit_up_price) return is_new_high if __name__ == "__main__": - code_str = "600748" + code_str = "603178" codes = code_str.split(",") for code in codes: if not tool.is_shsz_code(code): continue try: datas = init_data_util.get_volumns_by_code(code, 120) - result = code_nature_analyse.__is_yesterday_open_limit_up(datas) + result = is_too_high(datas) if result: print(code, result) except: -- Gitblit v1.8.0