持仓诊断分析
/install holdings-analysis
持仓诊断与分析 (Holdings Analysis)\r
\r
简介\r
\r 持仓实时诊断工具。读取持仓列表,调用腾讯API获取实时行情,结合技术指标计算买入评分(M/A/R/V四维)和卖出评分,给出PASS/FAIL状态和操作信号。\r \r ---\r \r
核心文件\r
\r
| 文件 | 用途 |\r
|------|------|\r
| _holdings_std.py | 持仓数据(成本价、买入日期) |\r
| check_holdings_v4.py | 主脚本:买入评分 + M/A/R/V + 卖出评分 + PASS/FAIL |\r
| analyze_holdings.py | v1版持仓分析 |\r
| analyze_holdings_v2.py | v2版持仓分析 |\r
| check_holdings_detail.py | 持仓详情(含趋势追踪) |\r
| check_holdings_trend.py | 持仓趋势追踪 |\r
| run_holdings.py | 快速运行入口 |\r
\r
---\r
\r
使用方法\r
\r
# 标准持仓诊断\r
python check_holdings_v4.py\r
\r
# 持仓趋势追踪\r
python check_holdings_trend.py\r
```\r
\r
---\r
\r
## 评分体系\r
\r
### 买入评分(满分100)\r
- **PASS** 阈值:≥55分,进入趋势合格池\r
- **FAIL** 阈值:\x3C55分,不符合趋势选股标准\r
\r
### 卖出评分(满分100)\r
- 评分越高代表风险越大\r
- 参考阈值:≥25分考虑分批止盈,≥40分强烈建议离场\r
\r
### M/A/R/V 四维\r
- **M**:动能(MACD方向)\r
- **A**:结构(均线排列)\r
- **R**:RSI强弱\r
- **V**:量价配合\r
\r
---\r
\r
## 输出格式\r
\r
```\r
代码 名称 评分 M/A/R/V 卖出评分 状态 盈亏%\r
000682 东方电子 59 21/20/18/0 20 PASS -1.1%\r
```\r
\r
---\r
\r
## 持仓数据维护\r
\r
编辑 `_holdings_std.py` 中的 `HOLDINGS` 列表添加新持仓:\r
```python\r
HOLDINGS = [\r
{"code": "000682", "buy_price": 13.20, "buy_date": "2026-03-30"},\r
{"code": "300529", "buy_price": 18.60, "buy_date": "2026-04-22"},\r
]\r
```\r
\r
---\r
\r
## 免责声明\r
\r
本系统仅供学习研究使用,不构成任何投资建议。\r
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install holdings-analysis - After installation, invoke the skill by name or use
/holdings-analysis - Provide required inputs per the skill's parameter spec and get structured output
What is 持仓诊断分析?
实时诊断持仓,结合腾讯行情和技术指标,计算买卖评分及状态,给出操作建议和盈亏情况。 It is an AI Agent Skill for Claude Code / OpenClaw, with 87 downloads so far.
How do I install 持仓诊断分析?
Run "/install holdings-analysis" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is 持仓诊断分析 free?
Yes, 持仓诊断分析 is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does 持仓诊断分析 support?
持仓诊断分析 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created 持仓诊断分析?
It is built and maintained by Jayden-zhong (@jayden-zhong); the current version is v1.0.0.