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
fetch_full_analysis.py
宏观+行业+技术全套数据
2用户配置文件持仓、关注方向、投资风格
3WebSearch仅用于财报、公告、研报
PrioritySourcePurpose
1
fetch_full_analysis.py
Full set of macro, industry and technical data
2User Configuration FilesPositions, Focus Areas, Investment Style
3WebSearchOnly 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 hk
bash
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

脚本输出的核心模块:
模块字段说明
宏观
macro.indices
主要指数涨跌
macro.market_trend
牛市/熊市/震荡判断
macro.north_flow
北向资金流向
macro.market_sentiment
涨跌家数比
行业
sector.related_sectors
相关板块表现
sector.sector_flow
板块资金流入
sector.etf_comparison
ETF横向对比
sector.relative_strength
领涨/跟涨/跟跌
技术
technical.trend
均线趋势
technical.macd
MACD状态
technical.rsi
RSI超买超卖
technical.atr
ATR止损参考
technical.volume
量价配合
评分
score
100分制综合评分
Core modules of script output:
ModuleFieldDescription
Macro
macro.indices
Price changes of major indices
macro.market_trend
Judgment of bull/bear/volatile market
macro.north_flow
Northbound capital flow direction
macro.market_sentiment
Ratio of rising vs falling stocks
Industry
sector.related_sectors
Performance of related sectors
sector.sector_flow
Capital inflow of sectors
sector.etf_comparison
Horizontal comparison of ETFs
sector.relative_strength
Leading/Following Rise/Following Fall
Technical
technical.trend
Moving average trend
technical.macd
MACD status
technical.rsi
RSI overbought/oversold status
technical.atr
ATR stop loss reference
technical.volume
Volume-price coordination
Score
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)

脚本输出
macro
字段:
json
{
  "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
macro
field:
json
{
  "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:
ConditionCycleScore
CSI 300 > MA20 and 60-day increase > 0Bull Market+12
CSI 300 < MA20 and 60-day decrease > 10%Bear Market+4
OthersVolatile+8
Northbound Capital Signal:
5-day CumulativeDirectionScore
> 5 billion RMBContinuous Inflow+8
< -5 billion RMBContinuous Outflow+2
OthersNeutral+4

二、行业分析(20分)

2. Industry Analysis (20 points)

脚本输出
sector
字段:
json
{
  "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
sector
field:
json
{
  "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 PeersRelative StrengthScore
Top 30% in gain rankingLeading Rise+15
Gain close to averageFollowing Rise+10
Bottom 30% in gain rankingFollowing Fall+5
Sector Capital Flow:
Net Inflow of Related SectorsSignalScore
Most sectors have inflowHigh sector popularity+5
Most sectors have outflowSector 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 StatusScore
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 StatusScore
Golden Cross/Bullish+10
Death Cross/Bearish+5
RSI StatusScore
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 RelationshipScore
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弱势回避

DimensionFull ScoreEvaluation Content
Macro20Market Cycle + Northbound Capital
Industry20Relative Strength + Sector Capital Flow
Technical60Trend + Momentum + Volume-Price + Position
Total100
Score Levels:
ScoreLevelRecommendation
80-100StrongActive participation is acceptable
65-79Moderately StrongModerate participation is acceptable
50-64NeutralMainly wait and see
35-49WeakBe cautious
0-34Very WeakAvoid

报告模板

Report Template

markdown
undefined
markdown
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

LevelJudgmentScore
Macro EnvironmentBull/Bear/VolatileXX/20
Industry StrengthLeading/Following Rise/Following FallXX/20
Technical PatternBullish/Bearish/VolatileXX/60
ComprehensiveStrong/Moderately Strong/Neutral/Weak/Very WeakXX/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%
SectorChangeTurnover
XX+X.X%X.X%

板块资金流向

Sector Capital Flow

板块净流入占比
XXXX亿X.X%
SectorNet InflowProportion
XXXX billion RMBX.X%

ETF横向对比

ETF Horizontal Comparison

ETF涨跌相对强度
目标ETFX.X%领涨/跟跌
同类ETFX.X%
行业得分:XX/20

ETFChangeRelative Strength
Target ETFX.X%Leading/Following Rise/Following Fall
Peer ETFX.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

维度得分满分明细
宏观XX20[detail]
行业XX20[detail]
技术XX60[detail]
总分XX100等级

DimensionScoreFull ScoreDetails
MacroXX20[detail]
IndustryXX20[detail]
TechnicalXX60[detail]
TotalXX100Level

五、交易策略

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.XX2倍ATR
目标位X.XX压力位附近
ScenarioPriceDescription
Ideal Buy PointX.XXPullback to support level
Aggressive Buy PointX.XXBreakout confirmation
Stop Loss LevelX.XX2x ATR
Target LevelX.XXNear 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
ItemETFIndividual Stock
Capital FlowNone (Check sector)Available
Valuation DataNoneAvailable
Financial DataNoneAvailable
Dragon and Tiger ListNoneAvailable
Component StocksAvailableNone
Analysis FocusMacro + Industry + TrendComprehensive analysis

更新 Insight.md

Important Reminders

将核心建议记录到采纳追踪表。

  1. Macro environment determines direction - Even the best stocks will fall in a bear market
  2. Industry strength determines excess returns - Choosing the right industry is more important than choosing the right stock
  3. Technical analysis determines entry and exit points - Wait for the right position even if you are bullish
  4. Stop loss is the last line of defense - Always set stop loss to control risk
  5. Score is a reference, not a decision - Combine with qualitative judgment

ETF vs 个股差异

Version History

项目ETF个股
资金流向无(看板块)
估值数据
财务数据
龙虎榜
成分股
分析重点宏观+行业+趋势全面分析

VersionDateUpdates
v1.02026-01Basic technical analysis
v2.02026-01Added volume-price analysis, multi-cycle trend, ATR stop loss
v3.02026-01Complete three-tier framework: Macro+Industry+Individual Stock

重要提醒

  1. 宏观环境决定方向 - 熊市中再好的股票也难逃下跌
  2. 行业强弱决定超额收益 - 选对行业比选对股票更重要
  3. 技术分析决定买卖点 - 即使看好也要等合适的位置
  4. 止损是最后的防线 - 永远设置止损,控制风险
  5. 评分是参考不是决策 - 需结合定性判断

版本历史

版本日期更新内容
v1.02026-01基础技术分析
v2.02026-01增加量价分析、多周期趋势、ATR止损
v3.02026-01完整三层框架:宏观+行业+个股