| | |
| | | if not is_special: |
| | | situation = MarketSituationManager().get_situation_cache() |
| | | zylt_threshold_as_yi = buy_condition_util.get_zyltgb_threshold(situation) |
| | | if global_util.zyltgb_map.get(code) and global_util.zyltgb_map.get(code) > zylt_threshold_as_yi[1] * 100000000: |
| | | if global_util.zyltgb_map.get(code) and global_util.zyltgb_map.get(code) > zylt_threshold_as_yi[ |
| | | 1] * 100000000: |
| | | l2_trade_util.forbidden_trade(code, |
| | | f"无辨识度,自由流通市值({global_util.zyltgb_map.get(code) // 100000000})>{zylt_threshold_as_yi[1]}亿") |
| | | continue |
| | |
| | | l2_trade_util.forbidden_trade(code, |
| | | f"无辨识度,涨停价({limit_up_price})>50") |
| | | continue |
| | | if code_nature_analyse.is_price_too_high_in_days(volumes_data, limit_up_price): |
| | | if code_nature_analyse.is_price_too_high_in_days(volumes_data, limit_up_price)[0]: |
| | | # 判断是否太高 |
| | | l2_trade_util.forbidden_trade(code, "6天内股价长得太高") |
| | | continue |
| | | pass |
| | | |
| | | if code_nature_analyse.is_continue_limit_up_not_enough_fall_dwon(volumes_data): |
| | | # 判断是否太高 |
| | |
| | | l2_code_operate.L2CodeOperate.get_instance().add_operate(0, lc, "代码被移除") |
| | | # 保存现价 |
| | | if dataList: |
| | | situation = MarketSituationManager().get_situation_cache() |
| | | zyltgb_thresholds = buy_condition_util.get_zyltgb_threshold(situation) |
| | | want_codes = gpcode_manager.WantBuyCodesManager().list_code_cache() |
| | | for data in dataList: |
| | | code = data["code"] |
| | | codes.append(code) |
| | |
| | | limit_up_price_dict[code] = limit_up_price |
| | | else: |
| | | temp_codes.append(code) |
| | | # 自由流通市值不符合标准 |
| | | if not want_codes or code not in want_codes: |
| | | # 没在想买单 |
| | | zyltgb = global_util.zyltgb_map.get(code) |
| | | if zyltgb: |
| | | zyltgb_as_yi = round(zyltgb / 100000000, 2) |
| | | if zyltgb_as_yi < zyltgb_thresholds[0] or zyltgb_as_yi > zyltgb_thresholds[6]: |
| | | # 想买单中的不能排除 |
| | | continue |
| | | elif zyltgb_as_yi > zyltgb_thresholds[1]: |
| | | # 比最大可买大的,如果没有短期辨识度就不买 |
| | | k_format = code_nature_analyse.CodeNatureRecordManager().get_k_format_cache(code) |
| | | if k_format and k_format[8][0] and k_format[8][1].find("短期") >= 0: |
| | | pass |
| | | else: |
| | | # 无短期辨识度 |
| | | continue |
| | | |
| | | tick_datas.append({"code": code, "price": data["price"], "volume": data["volume"], |
| | | "volumeUnit": data["volumeUnit"]}) |
| | | # 获取涨停价 |