褚宏光 dab9768b3b Update documentation and outputs for converging triangle analysis
- Revised README.md to enhance clarity on core functionalities and usage instructions.
- Updated USAGE.md to reflect the new pipeline script and its parameters.
- Modified .gitignore to include additional output files for better management.
- Removed outdated output files (all_results.csv, report.md, strong_breakout_up.csv, strong_breakout_down.csv) to streamline data handling.
- Improved structure and descriptions in documentation for better user guidance.
2026-01-22 15:06:25 +08:00

60 lines
2.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Technical Patterns Lab
技术形态识别研究与实验仓库,聚焦收敛三角形等形态的批量检测、突破强度计算与可视化验证。
## 核心功能
- **收敛三角形检测**:基于枢轴点连线 + 几何约束 + 收敛度判定
- **批量滚动计算**:支持多股票 × 多交易日的历史检测
- **突破强度评分**0~1 连续分数,使用加权求和 + tanh 归一化
- **可视化验证**:自动绘制检测窗口与完整历史走势
## 目录结构
```
technical-patterns-lab/
├── src/ # 核心算法
│ ├── converging_triangle.py # 收敛三角形检测
│ └── archive/ # 归档代码
├── scripts/ # 运行脚本
│ ├── pipeline_converging_triangle.py # 一键流水线
│ ├── run_converging_triangle.py # 批量检测
│ ├── report_converging_triangles.py # 生成报告
│ ├── plot_converging_triangles.py # 绘制图表
│ ├── triangle_config.py # 统一参数配置
│ └── archive/ # 归档脚本
├── data/ # 数据文件
│ ├── open.pkl, high.pkl, low.pkl, close.pkl, volume.pkl
├── outputs/ # 输出结果(已被 gitignore 忽略)
│ └── converging_triangles/ # 收敛三角形结果
└── docs/ # 文档
```
## 快速开始
```powershell
# 1. 激活环境
.\.venv\Scripts\Activate.ps1
# 2. 安装依赖(首次)
pip install numpy pandas matplotlib
# 3. 一键运行流水线(检测 + 报告 + 图表)
python scripts/pipeline_converging_triangle.py
```
## 输出示例
```
检测结果: N 个有效三角形
- 向上突破: N 次
- 向下突破: N 次
- 当日报告: outputs/converging_triangles/report.md
```
## 相关文档
- `docs/收敛三角形检测系统-使用指南.md` - 使用流程与参数说明
- `docs/突破强度计算方法.md` - 突破强度的计算逻辑
- `docs/converging_triangles_outputs.md` - 输出字段说明