| | |
| | | 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: |