technical-patterns-lab/discuss/20260126-讨论.md
褚宏光 95d13b2cce Enhance converging triangle analysis with detailed mode and outlier removal algorithm
- Added `--show-details` parameter to `pipeline_converging_triangle.py` for generating detailed charts that display all pivot points and fitting lines.
- Implemented an iterative outlier removal algorithm in `fit_pivot_line` to improve the accuracy of pivot point fitting by eliminating weak points.
- Updated `USAGE.md` to include new command examples for the detailed mode.
- Revised multiple documentation files to reflect recent changes and improvements in the pivot detection and visualization processes.
2026-01-26 18:43:18 +08:00

62 lines
1.8 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.

## 问题1: 末端枢轴点未识别
![](images/2026-01-26-15-44-13.png)
**现象**: 图表最右边明显的低点/高点没有被标记为枢轴点
**根因**:
1. 数据中有空值(NaN)导致比较失效
2. 只检测窗口前235天的枢轴点最后5天被忽略
3. 绘图时丢弃了末端的"候选枢轴点"
**解决**:
1.`nanmin/nanmax` 替代 `min/max`,自动跳过空值
2. 把"灵活区域"从5天扩大到15天覆盖更多末端数据
3. 对称短窗口右边只有N天时左边也只看N天而不是固定15天
4. 绘图时把"确认枢轴点"和"候选枢轴点"合并显示
详见 [枢轴点检测与可视化修复](../docs/2026-01-26_枢轴点检测与可视化修复.md)
---
## 问题2: 拟合点选择不合理
![](images/2026-01-26-15-48-56.png)
**现象**: 某些"弱"枢轴点如5.8元的低高点)被用于拟合,拉偏趋势线
![](images/2026-01-26-15-50-58.png)
**解决**: 迭代离群点移除算法
1. 先用所有点画一条拟合线
2. 找出离拟合线太远的"异常点"
3. 去掉最差的那个点,重新画线
4. 重复2-3次直到没有异常点
详见 [枢轴点拟合算法详解](../docs/枢轴点分段选择算法详解.md)
---
## 问题3: 非收敛形态误判
**现象**: "上升三角形"(上沿水平)被误判为"收敛三角形"
![](images/2026-01-26-18-36-50.png)
**解决**: 收紧斜率限制
- 上沿必须向下(或至少水平),不能向上
- 下沿必须向上(或至少水平),不能向下
- 这样就能过滤掉"上升三角形"和"下降通道"等非收敛形态
---
## 待办: 突破强度评分
| 分量 | 权重 | 说明 |
|------|------|------|
| 价格突破 | 60% | 突破幅度 |
| 收敛程度 | 25% | 蓄势充分度 |
| 成交量 | 15% | 放量确认 |
- 枢轴点和拟合线距离。
后续回测调优。