Administrator
2025-06-10 8ab72ecd563e4bdcb94eac3f8c9d18d0a0a2d502
strategy/µÍÎü½Å±¾_±æÊ¶¶È_v6.py
@@ -27,6 +27,13 @@
        if target_code.find("60") != 0 and target_code.find("00") != 0 and target_code.find("30") != 0:
            return False, "科创板的票不买"
    if sv.板块成交代码:
        deal_codes = set()
        for p in sv.板块成交代码:
            deal_codes |= set(sv.板块成交代码[p])
        if len(deal_codes) >= settings.max_buy_codes_count:
            return False, f"买入代码数超限({len(deal_codes)}/{settings.max_buy_codes_count})"
    # ç›®æ ‡ç¥¨æ¿å—涨停个数>=2
    can_buy_plates = set()
    for plate in sv.代码板块:
@@ -142,10 +149,9 @@
    limit_up_codes_count = max([(p, len(sv.开盘啦最正板块涨停.get(p, []))) for p in can_buy_plates], key=lambda x: x[1])[1]
    threshold_money *= max(min(10 - limit_up_codes_count + 3, 10), 5)/10
    threshold_money *= max(min(10 - limit_up_codes_count + 1, 10), 5) / 10
    # print(target_code, sv.自由流通市值, threshold_money, limit_up_codes_count)
    # threshold_money = 200e4  # int(sv.昨日成交量 * 0.2 * sv.今日涨停价 * 0.05)
    if big_order_money < threshold_money: