| | |
| | | break |
| | | |
| | | changed = True |
| | | __last_l_up_compute_info = self.__last_l_up_compute_info.get(code) |
| | | if __last_l_up_compute_info: |
| | | if __last_l_up_compute_info == watch_indexes: |
| | | l_up_compute_info = self.__last_l_up_compute_info.get(code) |
| | | if l_up_compute_info: |
| | | if l_up_compute_info[1] == watch_indexes: |
| | | changed = False |
| | | # 保存数据 |
| | | if changed: |
| | | threshold_time = 1 if tool.is_sz_code(code) else 2 |
| | | if time.time() - __last_l_up_compute_info[0] < threshold_time: |
| | | if l_up_compute_info: |
| | | if time.time() - l_up_compute_info[0] < threshold_time: |
| | | l2_log.l_cancel_debug(code, f"L前监控更新太频繁:{threshold_time}") |
| | | return |
| | | l2_log.l_cancel_debug(code, f"L前监控范围:{watch_indexes} 计算范围:{start_index}-{end_index}") |
| | |
| | | if constant.MIN_CODE_PRICE < float(limit_up_price) < constant.MAX_CODE_PRICE: |
| | | # 满足条件的单价 |
| | | pass |
| | | else: |
| | | elif float(limit_up_price) > constant.MAX_CODE_PRICE: |
| | | # HighIncreaseCodeManager().add_code(code) |
| | | # 小市值高股价可买 |
| | | zyltgb = global_util.zyltgb_map.get(code) |
| | | if zyltgb > 25e8 or float(limit_up_price) > constant.MAX_SUBSCRIPT_CODE_PRICE: |
| | | return False, True, f"股价大于{constant.MAX_CODE_PRICE}块/小于{constant.MIN_CODE_PRICE}块" |
| | | else: |
| | | return False, True, f"股价小于{constant.MIN_CODE_PRICE}块" |
| | | |
| | | # place_order_count = cls.__PlaceOrderCountManager.get_place_order_count(code) |
| | | # if place_order_count and place_order_count >= 10: |
| | |
| | | """ |
| | | deal_list = cls.__deal_volume_list_dict.get(code) |
| | | if not deal_list: |
| | | return 0, None |
| | | return [] |
| | | fdatas = [deal_list[-1]] |
| | | # 从倒数第二个数据计算 |
| | | for i in range(len(deal_list) - 2, -1, -1): |
| | |
| | | """ |
| | | deal_list = cls.__deal_volume_list_dict.get(code) |
| | | if not deal_list: |
| | | return 0, None |
| | | return [] |
| | | fdatas = [deal_list[-1]] |
| | | # 从倒数第二个数据计算 |
| | | for i in range(len(deal_list) - 1, -1, -1): |