| | |
| | | from code_attribute.code_nature_analyse import HighIncreaseCodeManager |
| | | from code_attribute.gpcode_manager import WantBuyCodesManager |
| | | from log_module import async_log_util |
| | | from log_module.log import logger_first_code_record, logger_l2_codes_subscript |
| | | from log_module.log import logger_first_code_record, logger_l2_codes_subscript, logger_debug |
| | | from third_data import history_k_data_manager |
| | | from third_data.code_plate_key_manager import CodesHisReasonAndBlocksManager |
| | | from third_data.history_k_data_manager import HistoryKDataManager |
| | |
| | | l2_trade_util.forbidden_trade(code, |
| | | f"无辨识度,涨停价({limit_up_price})>50") |
| | | continue |
| | | if code_nature_analyse.is_price_too_high_in_days(code, volumes_data, limit_up_price)[ |
| | | 0] and code.find("30") != 0: |
| | | # 判断是否太高 |
| | | l2_trade_util.forbidden_trade(code, "6天内股价长得太高") |
| | | continue |
| | | pass |
| | | # if code_nature_analyse.is_price_too_high_in_days(code, volumes_data, limit_up_price)[ |
| | | # 0] and code.find("30") != 0: |
| | | # # 判断是否太高 |
| | | # l2_trade_util.forbidden_trade(code, "6天内股价长得太高") |
| | | # continue |
| | | # pass |
| | | |
| | | if code_nature_analyse.is_continue_limit_up_not_enough_fall_dwon(code, volumes_data): |
| | | # 判断是否太高 |
| | | l2_trade_util.forbidden_trade(code, "回踩不够") |
| | | continue |
| | | |
| | | if not __is_normal_in_5d(code): |
| | | l2_trade_util.forbidden_trade(code, "最近5天有ST/非正常状态") |
| | | continue |
| | | try: |
| | | if not __is_normal_in_5d(code): |
| | | l2_trade_util.forbidden_trade(code, "最近5天有ST/非正常状态") |
| | | continue |
| | | except Exception as e: |
| | | logger_debug.error(f"{code}出错__is_normal_in_5d") |
| | | logger_debug.exception(e) |
| | | |
| | | if code_nature_analyse.is_up_too_high_in_10d_with_limit_up(code, volumes_data): |
| | | # 判断是否太高 |
| | |
| | | # 纠正数据 |
| | | if is_limit_up and limit_up_time is None: |
| | | limit_up_time = tool.get_now_time_str() |
| | | if is_limit_up: |
| | | # 加入首板涨停 |
| | | gpcode_manager.FirstCodeManager().add_limited_up_record([code]) |
| | | pricePre = gpcode_manager.CodePrePriceManager.get_price_pre_cache(code) |
| | | if pricePre is None: |
| | | history_k_data_manager.re_set_price_pres([code]) |