| | |
| | | # 获取下单位置 |
| | | place_order_index = huaxin_delegate_postion_manager.get_l2_place_order_position(code, datas) |
| | | if place_order_index: |
| | | logger_l2_process.info("code:{} 获取到下单真实位置:{}",code,place_order_index) |
| | | logger_l2_process.info("code:{} 获取到下单真实位置:{}", code, place_order_index) |
| | | DCancelBigNumComputer.set_real_order_index(code, place_order_index) |
| | | |
| | | __start_time = round(t.time() * 1000) |
| | |
| | | return False, True, f"该代码被暂停交易" |
| | | |
| | | limit_up_price = gpcode_manager.get_limit_up_price(code) |
| | | |
| | | if float(limit_up_price) >= 40: |
| | | return False, True, "股价大于40块" |
| | | |
| | | if constant.L2_SOURCE_TYPE == constant.L2_SOURCE_TYPE_HUAXIN: |
| | | trade_price = current_price_process_manager.get_trade_price(code) |
| | | if trade_price is None: |
| | |
| | | |
| | | if float(limit_up_price) >= 40: |
| | | return False, True, "股价大于40块" |
| | | |
| | | # 9:35之前买大市值(>=80亿)票 |
| | | if int(tool.get_now_date_str("%Y%m%d")) < int("093500"): |
| | | zyltgb = global_util.zyltgb_map.get(code) |
| | | if zyltgb is None: |
| | | global_data_loader.load_zyltgb() |
| | | zyltgb = global_util.zyltgb_map.get(code) |
| | | if zyltgb >= 80 * 100000000: |
| | | return True, False, "{9:30:00-9:35:00}自由市值≥80亿" |
| | | |
| | | # 获取涨停 |
| | | latest_2_day_limit_up_datas_temp = kpl_data_manager.get_current_limit_up_data_records(2) |
| | | latest_2_day_limit_up_datas = [] |
| | |
| | | if strong_result[0]: |
| | | # 强势板块 |
| | | # 买主板龙1,2,3,4 买后排 |
| | | if is_back_row and sh_sz_rank <= 3: |
| | | return cls.BLOCK_TYPE_STRONG, block, f"{block} 强势板块:买主板龙1,2,3,4 买后排" |
| | | if is_back_row and sh_sz_rank <= 2: |
| | | return cls.BLOCK_TYPE_STRONG, block, f"{block} 强势板块:买主板龙1,2,3 买后排" |
| | | |
| | | if soon_limit_up_result[0]: |
| | | # 猛拉板块 |
| | |
| | | if has_continue_limit_up: |
| | | return True, "板块有二板且3天内板块内无高于二板" |
| | | |
| | | for k in current_limit_up_datas: |
| | | if k[5] == block: |
| | | if k[4].find("连板") > -1 and int(k[4][:1]) > 2: |
| | | return True, f"板块有3板或以上({k[0]}-{k[4]})" |
| | | return False, "" |
| | | |
| | | |