admin
2025-04-29 4719390b960a6ab16931d0e1b7223b8b067c6043
actual_limit_down_numbers 数据 str 运算 BUG
上季度机构持仓 >= 0 参数修改
2个文件已修改
4 ■■■■ 已修改文件
strategy/market_sentiment_analysis.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
strategy/plate_strength_analysis.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
strategy/market_sentiment_analysis.py
@@ -726,7 +726,7 @@
                    ideal_trading_market_score = 1
                    # 33分是个两级分化阶梯不好,目前不好拿捏,暂时不用
                    # if data_cache.real_time_market_strong <= 33:   实际跌停大于10个
                    if data_cache.real_time_market_strong < 30 and actual_limit_down_numbers > 10:
                    if data_cache.real_time_market_strong < 30 and int(actual_limit_down_numbers) > 10:
                        # 如果大盘综合强度分数小于30,将低迷情绪分数比例设置为0.01,可用资金缩小一百倍
                        ideal_trading_market_score = 0.01
strategy/plate_strength_analysis.py
@@ -52,7 +52,7 @@
            stock_power_list = []
            for s in its_stock['list']:
                # 过滤掉涨幅大于  当日涨幅s[6] < 0% 的 和 名称中包含ST的 和 涨速小于等于0%的 和 只要昨日未涨停 和 上证或深证的正股    and s[9] > 0.0025  上季度机构持仓 >0
                if s[6] > 0 and s[1].find("ST") < 0 and s[1].find("XD") < 0 and s[23].find("板") < 0 and s[24].find("板") < 0 and (s[0].startswith('60') or s[0].startswith('00')) and s[9] > 1 and int(s[42]) > 0:
                if s[6] > 0 and s[1].find("ST") < 0 and s[1].find("XD") < 0 and s[23].find("板") < 0 and s[24].find("板") < 0 and (s[0].startswith('60') or s[0].startswith('00')) and s[9] > 1 and int(s[42]) >= 0:
                    # print(f"{s[1]},个股代码:{s[0]},   涨幅:{s[6]}%   涨速:{s[9]}%   概念:{s[4]}   主力资金推测:{s[2]}   领涨次数:{s[40]}  今日第几板:{s[23]} 是否破版{s[24]}")
                    # 对个股强度 主要 属性列表进行装填
                    its_stock_power = [s[1], s[0], s[6], s[9], s[4], s[2], s[40]]