| | |
| | | # if code in cls.volume_rate_info and cls.volume_rate_info[code][0] < volume_rate_thresholds[ |
| | | # 0] and not is_special: |
| | | # return False, True, f"强势10分钟,无辨识度,独苗({can_buy_result[4]}),当日量比({cls.volume_rate_info[code][0]})小于{volume_rate_thresholds[0]}" |
| | | elif not can_buy_result[0]: |
| | | return False, True, f"非独苗不满足身位:{can_buy_result[2]}" |
| | | else: |
| | | msg_list.append("非独苗") |
| | | if not is_better_zylt: |
| | |
| | | else: |
| | | # 本条数据作为起点 |
| | | last_index = i |
| | | count = datas[i]["re"] |
| | | count = total_datas[i]["re"] |
| | | start = i |
| | | |
| | | elif not L2DataUtil.is_sell(_val) and not L2DataUtil.is_sell_cancel(_val): |
| | |
| | | |
| | | # 计算信号位置之后的主动卖,加入到阈值之中 |
| | | sell_orders = HuaXinSellOrderStatisticManager.get_latest_transaction_datas(code, min_sell_order_no=int( |
| | | total_datas[buy_single_index]['val']['orderNo']), min_deal_time = tool.trade_time_sub(total_datas[buy_single_index]['val']['time'],1)) |
| | | total_datas[buy_single_index]['val']['orderNo']), min_deal_time=tool.trade_time_add_second( |
| | | total_datas[buy_single_index]['val']['time'], -1)) |
| | | sell_order_num = sum([x[1] for x in sell_orders]) // 100 |
| | | # 纯买额足够,且笔数大于2笔 |
| | | if buy_nums < threshold_num + sell_order_num: |