From 9039563a3c2e1349b0f71003f8a3f0b793924e82 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期五, 22 十二月 2023 16:54:27 +0800 Subject: [PATCH] bug修复 --- test/test_code_attribute.py | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/test/test_code_attribute.py b/test/test_code_attribute.py index 5d610a9..276649f 100644 --- a/test/test_code_attribute.py +++ b/test/test_code_attribute.py @@ -5,19 +5,21 @@ def is_too_high(datas): limit_up_price = round(datas[0]["close"] * 1.1, 2) datas.reverse() - is_new_high = code_nature_analyse.is_price_too_high_in_days(datas, limit_up_price) + is_new_high = code_nature_analyse.is_up_too_high_from_latest_limit_up(datas) return is_new_high if __name__ == "__main__": - code_str = "002915" + # code_str = "002103,002108,002176,002189,002328,002397,002457,002495,002578,002903,002933,003028,003040,600234,600293,600764,603090,603162,603193,603270,603332,603380,603615,603711" + code_str = "002933" codes = code_str.split(",") for code in codes: if not tool.is_shsz_code(code): continue try: - limit_up_price = 16.96 + # limit_up_price = 16.96 volumes_data = init_data_util.get_volumns_by_code(code, 150) - is_too_high(volumes_data) + # volumes_data = volumes_data[1:] + print(code, is_too_high(volumes_data)) except: print(code, "鍑洪敊") -- Gitblit v1.8.0