Administrator
2023-12-22 f0248f54f90a12f491245f0ee3ccfbe8f477a76b
test/test_code_attribute.py
@@ -5,20 +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_price_too_high_in_days(datas,limit_up_price)
    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 = "603178"
    code_str = "002915"
    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 = is_too_high(datas)
            if result:
                print(code, result)
            limit_up_price = 16.96
            volumes_data = init_data_util.get_volumns_by_code(code, 150)
            is_too_high(volumes_data)
        except:
            print(code, "出错")