analyze
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese/analyze - 个股深度分析 v3.0
/analyze - In-depth Individual Stock Analysis v3.0
基于宏观-行业-个股三层分析框架,数据驱动的专业投资分析。
Based on the three-tier analysis framework of Macro-Industry-Individual Stock, data-driven professional investment analysis.
使用方式
Usage
/analyze 588000 # 分析ETF
/analyze 002594 # 分析A股
/analyze 00700 # 分析港股
/analyze 比亚迪 # 用名称也可以/analyze 588000 # Analyze ETF
/analyze 002594 # Analyze A-share stock
/analyze 00700 # Analyze Hong Kong stock
/analyze 比亚迪 # You can also use the stock name核心投资框架
Core Investment Framework
┌─────────────────────────────────────────────────┐
│ 投资分析框架 │
├─────────────────────────────────────────────────┤
│ 1. 宏观环境(大势)20分 │
│ ├─ 市场周期:牛市/熊市/震荡 │
│ ├─ 指数趋势:沪深300 vs MA20 │
│ ├─ 资金环境:北向资金流向 │
│ └─ 市场情绪:涨跌比例 │
├─────────────────────────────────────────────────┤
│ 2. 行业分析(中观)20分 │
│ ├─ 板块强弱:相关板块排名 │
│ ├─ 资金流向:板块净流入 │
│ ├─ 相对强度:ETF横向对比 │
│ └─ 政策催化:行业政策动向 │
├─────────────────────────────────────────────────┤
│ 3. 个股分析(微观)60分 │
│ ├─ 趋势:均线排列+多周期共振 │
│ ├─ 动能:MACD+RSI │
│ ├─ 量价:量比+量价配合+背离 │
│ └─ 位置:ATR止损+支撑压力 │
├─────────────────────────────────────────────────┤
│ 4. 交易策略 │
│ ├─ 买点:理想/激进价位 │
│ ├─ 止损:ATR动态止损 │
│ └─ 目标:压力位参考 │
└─────────────────────────────────────────────────┘┌─────────────────────────────────────────────────┐
│ Investment Analysis Framework │
├─────────────────────────────────────────────────┤
│ 1. Macro Environment (General Market) 20 points│
│ ├─ Market Cycle: Bull/Bear/Volatile │
│ ├─ Index Trend: CSI 300 vs MA20 │
│ ├─ Capital Environment: Northbound Capital Flow│
│ └─ Market Sentiment: Rise-Fall Ratio │
├─────────────────────────────────────────────────┤
│ 2. Industry Analysis (Mid-view) 20 points │
│ ├─ Sector Strength: Ranking of Related Sectors│
│ ├─ Capital Flow: Net Inflow of Sectors │
│ ├─ Relative Strength: ETF Horizontal Comparison│
│ └─ Policy Catalyst: Industry Policy Trends │
├─────────────────────────────────────────────────┤
│ 3. Individual Stock Analysis (Micro-view) 60 points│
│ ├─ Trend: Moving Average Arrangement + Multi-cycle Resonance│
│ ├─ Momentum: MACD+RSI │
│ ├─ Volume-Price: Volume Ratio + Volume-Price Coordination + Divergence│
│ └─ Position: ATR Stop Loss + Support and Resistance│
├─────────────────────────────────────────────────┤
│ 4. Trading Strategy │
│ ├─ Buy Point: Ideal/Aggressive Price │
│ ├─ Stop Loss: ATR Dynamic Stop Loss │
│ └─ Target: Reference for Resistance Level │
└─────────────────────────────────────────────────┘数据来源优先级
Data Source Priority
| 优先级 | 来源 | 用途 |
|---|---|---|
| 1 | | 宏观+行业+技术全套数据 |
| 2 | 用户配置文件 | 持仓、关注方向、投资风格 |
| 3 | WebSearch | 仅用于财报、公告、研报 |
| Priority | Source | Purpose |
|---|---|---|
| 1 | | Full set of macro, industry and technical data |
| 2 | User Configuration Files | Positions, Focus Areas, Investment Style |
| 3 | WebSearch | Only used for financial reports, announcements, research reports |
禁止行为
Prohibited Actions
- ❌ 使用WebSearch获取价格数据
- ❌ 编造技术指标
- ❌ 脚本失败时跳过分析
- ❌ 没有数据支撑的模糊判断
- ❌ Using WebSearch to obtain price data
- ❌ Fabricating technical indicators
- ❌ Skipping analysis when script fails
- ❌ Vague judgments without data support
执行步骤
Execution Steps
第一步:运行完整分析脚本(必须)
Step 1: Run the Full Analysis Script (Required)
bash
cd "股市信息" && python3 scripts/fetch_full_analysis.py <代码>港股:
bash
cd "股市信息" && python3 scripts/fetch_full_analysis.py 00700 --market hkbash
cd "Stock Market Info" && python3 scripts/fetch_full_analysis.py <code>Hong Kong Stock:
bash
cd "Stock Market Info" && python3 scripts/fetch_full_analysis.py 00700 --market hk第二步:解读脚本输出
Step 2: Interpret Script Output
脚本输出的核心模块:
| 模块 | 字段 | 说明 |
|---|---|---|
| 宏观 | | 主要指数涨跌 |
| 牛市/熊市/震荡判断 | |
| 北向资金流向 | |
| 涨跌家数比 | |
| 行业 | | 相关板块表现 |
| 板块资金流入 | |
| ETF横向对比 | |
| 领涨/跟涨/跟跌 | |
| 技术 | | 均线趋势 |
| MACD状态 | |
| RSI超买超卖 | |
| ATR止损参考 | |
| 量价配合 | |
| 评分 | | 100分制综合评分 |
Core modules of script output:
| Module | Field | Description |
|---|---|---|
| Macro | | Price changes of major indices |
| Judgment of bull/bear/volatile market | |
| Northbound capital flow direction | |
| Ratio of rising vs falling stocks | |
| Industry | | Performance of related sectors |
| Capital inflow of sectors | |
| Horizontal comparison of ETFs | |
| Leading/Following Rise/Following Fall | |
| Technical | | Moving average trend |
| MACD status | |
| RSI overbought/oversold status | |
| ATR stop loss reference | |
| Volume-price coordination | |
| Score | | 100-point comprehensive score |
第三步:读取用户配置
Step 3: Read User Configuration
股市信息/Config/Holdings.md → 是否已持有
股市信息/Config/Watchlist.md → 关注方向
股市信息/Config/Profile.md → 投资风格Stock Market Info/Config/Holdings.md → Whether the stock is held
Stock Market Info/Config/Watchlist.md → Focus areas
Stock Market Info/Config/Profile.md → Investment style第四步:WebSearch补充(仅限必要时)
Step 4: WebSearch Supplement (Only When Necessary)
只在以下情况使用:
- 公司最新财报
- 近期重大公告
- 机构研报/目标价
必须标注来源和日期
Use only in the following cases:
- Company's latest financial report
- Recent major announcements
- Institutional research reports/target prices
Must mark the source and date
分析框架详解
Detailed Analysis Framework
一、宏观环境分析(20分)
1. Macro Environment Analysis (20 points)
脚本输出 字段:
macrojson
{
"market_trend": {
"cycle": "牛市",
"cycle_score": 2,
"hs300_vs_ma20": 1.51
},
"north_flow": {
"5d_total": 150.5,
"consecutive_days": 3,
"direction": "流入",
"signal": "外资积极"
},
"market_sentiment": {
"up_ratio": 65.2,
"sentiment": "偏乐观"
}
}市场周期判断规则:
| 条件 | 周期 | 得分 |
|---|---|---|
| 沪深300 > MA20 且 60日涨幅>0 | 牛市 | +12 |
| 沪深300 < MA20 且 60日跌幅>10% | 熊市 | +4 |
| 其他 | 震荡 | +8 |
北向资金信号:
| 5日累计 | 方向 | 得分 |
|---|---|---|
| > 50亿 | 持续流入 | +8 |
| < -50亿 | 持续流出 | +2 |
| 其他 | 中性 | +4 |
Script output field:
macrojson
{
"market_trend": {
"cycle": "Bull Market",
"cycle_score": 2,
"hs300_vs_ma20": 1.51
},
"north_flow": {
"5d_total": 150.5,
"consecutive_days": 3,
"direction": "Inflow",
"signal": "Foreign capital is positive"
},
"market_sentiment": {
"up_ratio": 65.2,
"sentiment": "Optimistic"
}
}Market Cycle Judgment Rules:
| Condition | Cycle | Score |
|---|---|---|
| CSI 300 > MA20 and 60-day increase > 0 | Bull Market | +12 |
| CSI 300 < MA20 and 60-day decrease > 10% | Bear Market | +4 |
| Others | Volatile | +8 |
Northbound Capital Signal:
| 5-day Cumulative | Direction | Score |
|---|---|---|
| > 5 billion RMB | Continuous Inflow | +8 |
| < -5 billion RMB | Continuous Outflow | +2 |
| Others | Neutral | +4 |
二、行业分析(20分)
2. Industry Analysis (20 points)
脚本输出 字段:
sectorjson
{
"related_sectors": [
{"name": "半导体概念", "change": 2.34, "turnover": 5.95},
{"name": "存储芯片", "change": 1.13, "turnover": 4.27}
],
"sector_flow": [
{"name": "半导体概念", "net_flow": 38.8亿, "net_ratio": 0.88}
],
"etf_comparison": [
{"code": "159995", "name": "芯片ETF", "change": 1.16},
{"code": "588000", "name": "科创50ETF", "change": -0.38}
],
"relative_strength": "跟跌"
}相对强度判断:
| ETF vs 同类 | 相对强度 | 得分 |
|---|---|---|
| 涨幅排名前30% | 领涨 | +15 |
| 涨幅接近平均 | 跟涨 | +10 |
| 涨幅排名后30% | 跟跌 | +5 |
板块资金流向:
| 相关板块净流入 | 信号 | 得分 |
|---|---|---|
| 多数流入 | 板块热度高 | +5 |
| 多数流出 | 板块退潮 | +0 |
Script output field:
sectorjson
{
"related_sectors": [
{"name": "Semiconductor Concept", "change": 2.34, "turnover": 5.95},
{"name": "Memory Chip", "change": 1.13, "turnover": 4.27}
],
"sector_flow": [
{"name": "Semiconductor Concept", "net_flow": 3.88 billion RMB, "net_ratio": 0.88}
],
"etf_comparison": [
{"code": "159995", "name": "Chip ETF", "change": 1.16},
{"code": "588000", "name": "STAR 50 ETF", "change": -0.38}
],
"relative_strength": "Following Fall"
}Relative Strength Judgment:
| ETF vs Peers | Relative Strength | Score |
|---|---|---|
| Top 30% in gain ranking | Leading Rise | +15 |
| Gain close to average | Following Rise | +10 |
| Bottom 30% in gain ranking | Following Fall | +5 |
Sector Capital Flow:
| Net Inflow of Related Sectors | Signal | Score |
|---|---|---|
| Most sectors have inflow | High sector popularity | +5 |
| Most sectors have outflow | Sector cooling down | +0 |
三、个股技术分析(60分)
3. Individual Stock Technical Analysis (60 points)
趋势分析(25分)
Trend Analysis (25 points)
json
{
"trend": {
"status": "多头排列",
"score": 2
}
}| 均线状态 | 得分 |
|---|---|
| 多头排列(MA5>MA10>MA20>MA60) | +25 |
| 偏多(价格>MA20) | +15 |
| 纠缠 | +10 |
| 空头排列 | +5 |
json
{
"trend": {
"status": "Bullish Arrangement",
"score": 2
}
}| Moving Average Status | Score |
|---|---|
| Bullish arrangement (MA5>MA10>MA20>MA60) | +25 |
| Bullish bias (Price>MA20) | +15 |
| Entangled | +10 |
| Bearish arrangement | +5 |
动能指标(15分)
Momentum Indicators (15 points)
json
{
"macd": {"signal": "多头"},
"rsi": {"value": 65, "signal": "中性"}
}| MACD状态 | 得分 |
|---|---|
| 金叉/多头 | +10 |
| 死叉/空头 | +5 |
| RSI状态 | 得分 |
|---|---|
| 中性(30-70) | +5 |
| 超买(>70)或超卖(<30) | +3 |
json
{
"macd": {"signal": "Bullish"},
"rsi": {"value": 65, "signal": "Neutral"}
}| MACD Status | Score |
|---|---|
| Golden Cross/Bullish | +10 |
| Death Cross/Bearish | +5 |
| RSI Status | Score |
|---|---|
| Neutral (30-70) | +5 |
| Overbought (>70) or Oversold (<30) | +3 |
量价分析(10分)
Volume-Price Analysis (10 points)
json
{
"volume": {
"ratio": 0.87,
"vol_price": "量价平稳"
}
}| 量价关系 | 得分 |
|---|---|
| 放量上涨 | +10 |
| 量价平稳 | +6 |
| 缩量上涨 | +4 |
| 放量下跌 | +2 |
json
{
"volume": {
"ratio": 0.87,
"vol_price": "Volume-price Stable"
}
}| Volume-Price Relationship | Score |
|---|---|
| Rising with increased volume | +10 |
| Stable volume-price | +6 |
| Rising with decreased volume | +4 |
| Falling with increased volume | +2 |
ATR止损(10分)
ATR Stop Loss (10 points)
json
{
"atr": {
"value": 0.0382,
"stop_loss": 1.4966,
"stop_loss_pct": -4.86
}
}止损建议:
- 保守:1倍ATR
- 标准:2倍ATR → 使用
stop_loss - 激进:3倍ATR
json
{
"atr": {
"value": 0.0382,
"stop_loss": 1.4966,
"stop_loss_pct": -4.86
}
}Stop Loss Recommendations:
- Conservative: 1x ATR
- Standard: 2x ATR → Use
stop_loss - Aggressive: 3x ATR
综合评分体系
Comprehensive Scoring System
| 维度 | 满分 | 评估内容 |
|---|---|---|
| 宏观 | 20 | 市场周期+北向资金 |
| 行业 | 20 | 相对强度+板块资金 |
| 技术 | 60 | 趋势+动能+量价+位置 |
| 总分 | 100 |
评分等级:
| 分数 | 等级 | 建议 |
|---|---|---|
| 80-100 | 强势 | 可积极参与 |
| 65-79 | 偏强 | 可适度参与 |
| 50-64 | 中性 | 观望为主 |
| 35-49 | 偏弱 | 谨慎 |
| 0-34 | 弱势 | 回避 |
| Dimension | Full Score | Evaluation Content |
|---|---|---|
| Macro | 20 | Market Cycle + Northbound Capital |
| Industry | 20 | Relative Strength + Sector Capital Flow |
| Technical | 60 | Trend + Momentum + Volume-Price + Position |
| Total | 100 |
Score Levels:
| Score | Level | Recommendation |
|---|---|---|
| 80-100 | Strong | Active participation is acceptable |
| 65-79 | Moderately Strong | Moderate participation is acceptable |
| 50-64 | Neutral | Mainly wait and see |
| 35-49 | Weak | Be cautious |
| 0-34 | Very Weak | Avoid |
报告模板
Report Template
markdown
undefinedmarkdown
undefined[代码] [名称] 深度分析
[Code] [Name] In-depth Analysis
分析时间:YYYY-MM-DD HH:MM
数据来源:AKShare v3.0
分析框架:宏观-行业-个股
Analysis Time: YYYY-MM-DD HH:MM
Data Source: AKShare v3.0
Analysis Framework: Macro-Industry-Individual Stock
快速摘要
Quick Summary
| 层级 | 判断 | 得分 |
|---|---|---|
| 宏观环境 | 牛市/熊市/震荡 | XX/20 |
| 行业强度 | 领涨/跟涨/跟跌 | XX/20 |
| 技术形态 | 多头/空头/震荡 | XX/60 |
| 综合 | 强势/偏强/中性/偏弱/弱势 | XX/100 |
| Level | Judgment | Score |
|---|---|---|
| Macro Environment | Bull/Bear/Volatile | XX/20 |
| Industry Strength | Leading/Following Rise/Following Fall | XX/20 |
| Technical Pattern | Bullish/Bearish/Volatile | XX/60 |
| Comprehensive | Strong/Moderately Strong/Neutral/Weak/Very Weak | XX/100 |
一、宏观环境(大势)
1. Macro Environment (General Market Trend)
市场周期
Market Cycle
- 沪深300:XXXX (+X.X%)
- vs MA20:+X.X%
- 判断:牛市/熊市/震荡
- CSI 300: XXXX (+X.X%)
- vs MA20: +X.X%
- Judgment: Bull/Bear/Volatile Market
北向资金
Northbound Capital
- 今日净流入:XX亿
- 5日累计:XX亿
- 连续流入/流出:X天
- 信号:外资积极/观望/撤退
- Today's Net Inflow: XX billion RMB
- 5-day Cumulative: XX billion RMB
- Continuous Inflow/Outflow: X days
- Signal: Foreign capital is positive/waiting/retreating
市场情绪
Market Sentiment
- 上涨家数:XXXX
- 下跌家数:XXXX
- 涨跌比:X:X
- 情绪:乐观/中性/悲观
宏观得分:XX/20
- Number of Rising Stocks: XXXX
- Number of Falling Stocks: XXXX
- Rise-Fall Ratio: X:X
- Sentiment: Optimistic/Neutral/Pessimistic
Macro Score: XX/20
二、行业分析(中观)
2. Industry Analysis (Mid-view)
相关板块表现
Related Sectors Performance
| 板块 | 涨跌 | 换手 |
|---|---|---|
| XX | +X.X% | X.X% |
| Sector | Change | Turnover |
|---|---|---|
| XX | +X.X% | X.X% |
板块资金流向
Sector Capital Flow
| 板块 | 净流入 | 占比 |
|---|---|---|
| XX | XX亿 | X.X% |
| Sector | Net Inflow | Proportion |
|---|---|---|
| XX | XX billion RMB | X.X% |
ETF横向对比
ETF Horizontal Comparison
| ETF | 涨跌 | 相对强度 |
|---|---|---|
| 目标ETF | X.X% | 领涨/跟跌 |
| 同类ETF | X.X% |
行业得分:XX/20
| ETF | Change | Relative Strength |
|---|---|---|
| Target ETF | X.X% | Leading/Following Rise/Following Fall |
| Peer ETF | X.X% |
Industry Score: XX/20
三、技术分析(微观)
3. Technical Analysis (Micro-view)
趋势
Trend
- 均线排列:多头/空头/纠缠
- MA5/10/20/60位置
- Moving Average Arrangement: Bullish/Bearish/Entangled
- Positions of MA5/10/20/60
MACD
MACD
- DIF: X.XXX
- DEA: X.XXX
- 状态:多头/空头/金叉/死叉
- DIF: X.XXX
- DEA: X.XXX
- Status: Bullish/Bearish/Golden Cross/Death Cross
RSI
RSI
- 数值:XX
- 状态:超买/超卖/中性
- Value: XX
- Status: Overbought/Oversold/Neutral
量价
Volume-Price
- 量比:X.XX
- 量价配合:健康/警惕/观望
技术得分:XX/60
- Volume Ratio: X.XX
- Volume-Price Coordination: Healthy/Cautionary/Wait and See
Technical Score: XX/60
四、综合评分
4. Comprehensive Score
| 维度 | 得分 | 满分 | 明细 |
|---|---|---|---|
| 宏观 | XX | 20 | [detail] |
| 行业 | XX | 20 | [detail] |
| 技术 | XX | 60 | [detail] |
| 总分 | XX | 100 | 等级 |
| Dimension | Score | Full Score | Details |
|---|---|---|---|
| Macro | XX | 20 | [detail] |
| Industry | XX | 20 | [detail] |
| Technical | XX | 60 | [detail] |
| Total | XX | 100 | Level |
五、交易策略
5. Trading Strategy
ATR动态止损
ATR Dynamic Stop Loss
- 当前ATR:X.XXX (X.X%)
- 建议止损:X.XX (-X.X%)
- Current ATR: X.XXX (X.X%)
- Recommended Stop Loss: X.XX (-X.X%)
操作建议
Operation Recommendations
| 场景 | 价格 | 说明 |
|---|---|---|
| 理想买点 | X.XX | 回调到支撑位 |
| 激进买点 | X.XX | 突破确认 |
| 止损位 | X.XX | 2倍ATR |
| 目标位 | X.XX | 压力位附近 |
| Scenario | Price | Description |
|---|---|---|
| Ideal Buy Point | X.XX | Pullback to support level |
| Aggressive Buy Point | X.XX | Breakout confirmation |
| Stop Loss Level | X.XX | 2x ATR |
| Target Level | X.XX | Near resistance level |
适合您吗
Is It Suitable for You?
- ✅/❌ 宏观环境支持
- ✅/❌ 行业处于上升周期
- ✅/❌ 技术形态健康
- ✅/❌ 符合您的投资风格
数据来源:AKShare
免责声明:本分析基于历史数据,不构成投资建议
---- ✅/❌ Macro environment supports
- ✅/❌ Industry is in upward cycle
- ✅/❌ Technical pattern is healthy
- ✅/❌ Matches your investment style
Data Source: AKShare
Disclaimer: This analysis is based on historical data and does not constitute investment advice
---保存与记录
ETF vs Individual Stock Differences
保存报告
—
股市信息/Analysis/[代码]-[名称].md| Item | ETF | Individual Stock |
|---|---|---|
| Capital Flow | None (Check sector) | Available |
| Valuation Data | None | Available |
| Financial Data | None | Available |
| Dragon and Tiger List | None | Available |
| Component Stocks | Available | None |
| Analysis Focus | Macro + Industry + Trend | Comprehensive analysis |
更新 Insight.md
Important Reminders
将核心建议记录到采纳追踪表。
- Macro environment determines direction - Even the best stocks will fall in a bear market
- Industry strength determines excess returns - Choosing the right industry is more important than choosing the right stock
- Technical analysis determines entry and exit points - Wait for the right position even if you are bullish
- Stop loss is the last line of defense - Always set stop loss to control risk
- Score is a reference, not a decision - Combine with qualitative judgment
ETF vs 个股差异
Version History
| 项目 | ETF | 个股 |
|---|---|---|
| 资金流向 | 无(看板块) | 有 |
| 估值数据 | 无 | 有 |
| 财务数据 | 无 | 有 |
| 龙虎榜 | 无 | 有 |
| 成分股 | 有 | 无 |
| 分析重点 | 宏观+行业+趋势 | 全面分析 |
| Version | Date | Updates |
|---|---|---|
| v1.0 | 2026-01 | Basic technical analysis |
| v2.0 | 2026-01 | Added volume-price analysis, multi-cycle trend, ATR stop loss |
| v3.0 | 2026-01 | Complete three-tier framework: Macro+Industry+Individual Stock |
重要提醒
—
- 宏观环境决定方向 - 熊市中再好的股票也难逃下跌
- 行业强弱决定超额收益 - 选对行业比选对股票更重要
- 技术分析决定买卖点 - 即使看好也要等合适的位置
- 止损是最后的防线 - 永远设置止损,控制风险
- 评分是参考不是决策 - 需结合定性判断
—
版本历史
—
| 版本 | 日期 | 更新内容 |
|---|---|---|
| v1.0 | 2026-01 | 基础技术分析 |
| v2.0 | 2026-01 | 增加量价分析、多周期趋势、ATR止损 |
| v3.0 | 2026-01 | 完整三层框架:宏观+行业+个股 |
—