| | |
| | | can_buy_result = cls.__get_can_buy_block(code) |
| | | if can_buy_result is None: |
| | | return False, True, "尚未获取到板块信息" |
| | | l2_log.debug(code,"获取到的板块信息:{}", can_buy_result) |
| | | l2_log.debug(code, "获取到的板块信息:{}", can_buy_result) |
| | | |
| | | # -------量的约束-------- |
| | | k_format = code_nature_analyse.CodeNatureRecordManager().get_k_format_cache(code) |
| | |
| | | # 是独苗 |
| | | if code in cls.volume_rate_info and cls.volume_rate_info[code][0] < 0.3: |
| | | return False, True, f"近2天有10日内最高量,量比({cls.volume_rate_info[code][0]})未达到30%" |
| | | |
| | | # 是独苗 |
| | | if can_buy_result[1]: |
| | | if now_timestamp < int("100000") or int("130000") <= now_timestamp < int("133000"): |
| | | # 独苗必须9:30-10:00和13:00-13:30时间段内买 |
| | | return True, False, f"独苗:{can_buy_result[2]}" |
| | | else: |
| | | return False, True, f"独苗:当前时间不能买" |
| | | if now_timestamp < int("100000") or int("130000") <= now_timestamp < int("133000"): |
| | | # 独苗必须9:30-10:00和13:00-13:30时间段内买 |
| | | return True, False, f"独苗:{can_buy_result[2]}" |
| | | else: |
| | | if can_buy_result[0]: |
| | | return True, False, can_buy_result[2] |
| | | return False, True, f"独苗:当前时间不能买" |
| | | else: |
| | | if can_buy_result[0]: |
| | | return True, False, can_buy_result[2] |
| | | return False, True, can_buy_result[2] |
| | | |
| | | @classmethod |