Initial commit: A-share stock analysis project with screening, backtesting, and multi-factor analysis tools

This commit is contained in:
2026-07-01 06:39:40 +00:00
commit d80c208004
19 changed files with 1542 additions and 0 deletions
+77
View File
@@ -0,0 +1,77 @@
---
name: market-overview
description: Assess current A-share market environment including index trends, market breadth, sector rotation, and position sizing recommendation
---
## What I Do
Evaluate the overall A-share market environment to determine:
1. Whether the market is favorable for medium-term trading
2. Suggested position sizing in RMB (capital-aware, for ~5万 account)
3. Current hot sectors and rotation patterns
4. Key risk factors
## Capital Context (CRITICAL)
**The user has ~5万 RMB capital.** Position sizing must be translated to concrete RMB amounts, not abstract percentages alone.
### Position Sizing for 5万 Account
| Signal | Total Position | Max Per Stock | Holding Count |
|--------|---------------|---------------|---------------|
| **Heavy (bullish)** | ¥35,00040,000 (7080%) | ¥10,00015,000 each | 34 positions |
| **Moderate (neutral)** | ¥15,00025,000 (3050%) | ¥5,00010,000 each | 23 positions |
| **Light (bearish)** | <¥15,000 (<30%) | <¥5,000 each | 12 positions |
Always present both: percentage of capital AND the corresponding RMB range.
## Assessment Dimensions
### Index Trend
- Shanghai Composite (000001), Shenzhen Component (399001), ChiNext (399006)
- Direction, strength, and stage of trend
- Key support/resistance levels
- 20/60-day MA relationship
### Market Breadth
- Advancing vs declining stocks ratio
- Volume trend (expanding / contracting)
- New highs vs new lows
- % of stocks above 20-day MA
### Sector Rotation
- Leading and lagging sectors
- Sector fund flow
- Continuity of sector trends (how many days in a row?)
## When to Use Me
Use when the user asks to:
- Check market conditions
- Decide position size
- Understand sector rotation
- Before running any stock screening
## Workflow
1. Fetch major index data via `stock-data index`
2. Fetch sector performance via `stock-data sector`
3. Analyze market breadth indicators
4. Identify sector hotspots and rotation signals
5. Output a structured market assessment:
### Output Format
1. **Market Signal**: Strong / Moderate / Weak — with justification
2. **Index Summary**: each index trend + key level
3. **Market Breadth**: breadth reading and what it means
4. **Hot Sectors**: top 35 sectors with momentum
5. **Position Recommendation**:
- Signal-based allocation in RMB and %
- Max per stock in RMB
- Suggested holding count
6. **Key Risks**: specific market risks to watch this week
## Risk Disclaimer
Always remind the user: results are for reference only. Market conditions can change rapidly. Position sizing is a suggestion, not financial advice.