Administrator
2025-08-12 2777893aaaaf7c9bc2d7b68cb3640455df3620d6
初次涨停10s以上算涨停
1个文件已修改
6 ■■■■■ 已修改文件
trade/buy_radical/radical_buy_data_manager.py 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
trade/buy_radical/radical_buy_data_manager.py
@@ -1957,7 +1957,8 @@
    if current_lack_money == 0 and total_lack_money == 0:
        return True, f"量比-{volume_rate}, 瞬时大单成交-({current_big_order_deal_money}/{current_threshold_money}),总大单成交-({total_lack_money_info[1]}/{total_lack_money_info[2]})", before_time, 0, total_lack_money <= 0, current_lack_money, total_lack_money, current_big_order_deal_orderids
    return False, f"量比-{volume_rate}, 瞬时大单成交-({current_big_order_deal_money}/{current_threshold_money}),总大单成交-({total_lack_money_info[1]}/{total_lack_money_info[2]})", before_time, max(
        current_lack_money, total_lack_money), total_lack_money <= 0, current_lack_money, total_lack_money, current_big_order_deal_orderids
        current_lack_money,
        total_lack_money), total_lack_money <= 0, current_lack_money, total_lack_money, current_big_order_deal_orderids
class EveryLimitupBigDealOrderManager:
@@ -2312,7 +2313,8 @@
        # 根据L1判断是否涨停
        max_price_info = MaxPriceInfoManager().get_price_info_cache(code)
        limit_up_price = gpcode_manager.get_limit_up_price_as_num(code)
        if max_price_info and abs(max_price_info[0] - limit_up_price)<0.001 and tool.trade_time_sub(tool.get_now_time_str(), max_price_info[1])>=3:
        if max_price_info and abs(max_price_info[0] - limit_up_price) < 0.001 and tool.trade_time_sub(
                tool.get_now_time_str(), max_price_info[1]) >= 10:
            # 是涨停价且涨停时间距离现在3s以上
            is_limit_up = True