Administrator
2023-12-22 3b8d0024d7b030894c3cb506c79e8f5676a0b4db
test/test_code_attribute.py
@@ -5,12 +5,12 @@
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 = "002861"
    code_str = "002915"
    codes = code_str.split(",")
    for code in codes:
        if not tool.is_shsz_code(code):
@@ -18,13 +18,6 @@
        try:
            limit_up_price = 16.96
            volumes_data = init_data_util.get_volumns_by_code(code, 150)
            volumes_data = volumes_data[1:]
            volumes = init_data_util.parse_max_volume(volumes_data[:90],
                                                      code_nature_analyse.is_new_top(
                                                          limit_up_price,
                                                          volumes_data[:90]) or code_nature_analyse.is_near_top(
                                                          limit_up_price,
                                                          volumes_data[:90]))
            print(volumes)
            is_too_high(volumes_data)
        except:
            print(code, "出错")