Loading...
Loading...
In-depth analysis of individual stocks. Use this skill when the user says "Analyze XX", "How is XX doing", "Is XX worth buying", "Research XX".
npx skill4agent add allenai2014/ai-investment-advisor 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┌─────────────────────────────────────────────────┐
│ 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 │
└─────────────────────────────────────────────────┘| 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 |
cd "Stock Market Info" && python3 scripts/fetch_full_analysis.py <code>cd "Stock Market Info" && python3 scripts/fetch_full_analysis.py 00700 --market hk| 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 |
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 stylemacro{
"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"
}
}| 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 |
| 5-day Cumulative | Direction | Score |
|---|---|---|
| > 5 billion RMB | Continuous Inflow | +8 |
| < -5 billion RMB | Continuous Outflow | +2 |
| Others | Neutral | +4 |
sector{
"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"
}| 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 |
| Net Inflow of Related Sectors | Signal | Score |
|---|---|---|
| Most sectors have inflow | High sector popularity | +5 |
| Most sectors have outflow | Sector cooling down | +0 |
{
"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 |
{
"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 |
{
"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": {
"value": 0.0382,
"stop_loss": 1.4966,
"stop_loss_pct": -4.86
}
}stop_loss| 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 | 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 |
# [Code] [Name] In-depth Analysis
**Analysis Time**: YYYY-MM-DD HH:MM
**Data Source**: AKShare v3.0
**Analysis Framework**: Macro-Industry-Individual Stock
---
## Quick Summary
| 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
- CSI 300: XXXX (+X.X%)
- vs MA20: +X.X%
- Judgment: **Bull/Bear/Volatile Market**
### Northbound Capital
- 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
- 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
| Sector | Change | Turnover |
|------|------|------|
| XX | +X.X% | X.X% |
### Sector Capital Flow
| Sector | Net Inflow | Proportion |
|------|--------|------|
| XX | XX billion RMB | X.X% |
### ETF Horizontal Comparison
| 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
- Moving Average Arrangement: Bullish/Bearish/Entangled
- Positions of MA5/10/20/60
### MACD
- DIF: X.XXX
- DEA: X.XXX
- Status: Bullish/Bearish/Golden Cross/Death Cross
### RSI
- Value: XX
- Status: Overbought/Oversold/Neutral
### Volume-Price
- Volume Ratio: X.XX
- Volume-Price Coordination: Healthy/Cautionary/Wait and See
**Technical Score**: XX/60
---
## 4. Comprehensive Score
| 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 Dynamic Stop Loss
- Current ATR: X.XXX (X.X%)
- **Recommended Stop Loss**: X.XX (-X.X%)
### Operation Recommendations
| 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?
- ✅/❌ 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*| 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 |
| 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 |