| | |
| | | # 炸板时间在两次下单时间中间 |
| | | is_limit_up_buy = False |
| | | if is_limit_up_buy: |
| | | # 板上买且非加绿 |
| | | |
| | | # 判断成交进度到当前数据的笔数,如果少于10笔且还有未成交的大单(>=299)就可以下单 |
| | | trade_index, is_default = cls.__TradeBuyQueue.get_traded_index(code) |
| | | if trade_index is None: |
| | |
| | | total_datas[-1]["index"], |
| | | limit_up_price, min_money) |
| | | if left_count < 1: |
| | | return False, False, f"第{place_order_count + 1}下单无待成交的大单", False |
| | | return False, False, f"第{place_order_count + 1}次下单无待成交的大单", False |
| | | |
| | | # -------判断是否是量化下单,如果是就不跟到下单-------- |
| | | # 重要:量化下单会增加下单次数,板块下单中有下单次数的使用,所以板块需要在量化判断之前 |
| | |
| | | if range_indexes: |
| | | # 是否是量化单 |
| | | is_quantization_result = buy_strategy_util.is_quantization(code, range_indexes[0], range_indexes[1]) |
| | | if is_quantization_result[0]: |
| | | if is_quantization_result[0] and not gpcode_manager.GreenListCodeManager().is_in_cache(code): |
| | | # 量化单且没有加绿 |
| | | cls.__next_buy_time_dict[code] = is_quantization_result[1] |
| | | return False, True, is_quantization_result[2], True |
| | | return True, False, "满足下单条件", True |