1.【不利】冷票 且 瞬时涨幅小于 1 新增 并集因子 自由市值小于 100亿!
2.write_filtered_file_local_storage() JSON文件写入失败BUG
2个文件已修改
14 ■■■■■ 已修改文件
strategy/buying_strategy.py 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
strategy/plate_strength_analysis.py 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
strategy/buying_strategy.py
@@ -363,9 +363,9 @@
                                            logger_info(
                                                f"【不利】早盘第一个tick,瞬时涨幅计算恐有误,不买!瞬时量幅比:{round(last_volume_to_growth_ratio, 2)}%,瞬时涨幅: {tick_growth:.2f}%,当日当时涨幅:{today_growth}%。")
                                            return
                                        if limit_up_day < 1 and tick_growth < 1:
                                        if limit_up_day < 1 and tick_growth < 1 and free_market_value < 100:
                                            logger_info(
                                                f"【不利】冷票 且 瞬时涨幅小于 1 !不买!!,瞬时量幅比:{round(last_volume_to_growth_ratio, 2)}%,90天内涨停天数:{limit_up_day}")
                                                f"【不利】冷票 且 瞬时涨幅小于 1 且 自由市值小于 100亿!不买!!,瞬时量幅比:{round(last_volume_to_growth_ratio, 2)}%,90天内涨停天数:{limit_up_day}")
                                            return
                                        # for d in k_line_data[1:3] 只检查k_line_data中的第二个和第三个元素
                                        if limit_up_day > 6 and any(
@@ -517,9 +517,9 @@
                                                logger_info(
                                                    f"【不利】当日当时涨幅小于3%,信心不足,不太可能有强度,不买!瞬时量幅比:{round(last_volume_to_growth_ratio, 2)}%,瞬时涨幅: {tick_growth:.2f}%,当日当时涨幅:{today_growth}%。")
                                                return
                                            if limit_up_day < 1 and tick_growth < 1:
                                            if limit_up_day < 1 and tick_growth < 1 and free_market_value < 100:
                                                logger_info(
                                                    f"【不利】冷票 且 瞬时涨幅小于 1 !不买!!,瞬时量幅比:{round(last_volume_to_growth_ratio, 2)}%,90天内涨停天数:{limit_up_day}")
                                                    f"【不利】冷票 且 瞬时涨幅小于 1 且 自由市值小于 100亿!不买!!,瞬时量幅比:{round(last_volume_to_growth_ratio, 2)}%,90天内涨停天数:{limit_up_day}")
                                                return
                                            # for d in k_line_data[1:3] 只检查k_line_data中的第二个和第三个元素
                                            if limit_up_day > 6 and any(
strategy/plate_strength_analysis.py
@@ -872,8 +872,9 @@
# 将积累好的过滤文件写入本地存储
def write_filtered_file_local_storage():
    with open(constant.FILTERED_STOCK_PATH, "w", encoding="utf-8") as file:
        json.dump(data_cache.filtered_stock_info_set, file, ensure_ascii=False, indent=4)
        json.dump(list(data_cache.filtered_stock_info_set), file, ensure_ascii=False, indent=4)
    logger_common.info(f"filtered_stock_info_set===》JSON文件已写入: {data_cache.filtered_stock_info_set}")
    print(f"filtered_stock_info_set===》JSON文件已写入: {data_cache.filtered_stock_info_set}")
# 检查因强度中的过滤因素而被错过的涨停函数【建立在策略不重启的基础上】
@@ -900,6 +901,7 @@
if __name__ == '__main__':
    # analyze_plate_trend('人工智能')
    check_intensity_missing_limit_up_stock()
    # check_intensity_missing_limit_up_stock()
    write_filtered_file_local_storage()