1.【不利】冷票 且 瞬时涨幅小于 1 新增 并集因子 自由市值小于 100亿!
2.write_filtered_file_local_storage() JSON文件写入失败BUG
| | |
| | | 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( |
| | |
| | | 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( |
| | |
| | | # 将积累好的过滤文件写入本地存储 |
| | | 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}") |
| | | |
| | | |
| | | # 检查因强度中的过滤因素而被错过的涨停函数【建立在策略不重启的基础上】 |
| | |
| | | |
| | | if __name__ == '__main__': |
| | | # analyze_plate_trend('人工智能') |
| | | check_intensity_missing_limit_up_stock() |
| | | # check_intensity_missing_limit_up_stock() |
| | | write_filtered_file_local_storage() |
| | | |
| | | |