technical-analysis
Original:🇨🇳 Chinese
Translated
1 scriptsChecked / no sensitive code detected
Perform technical analysis on stock K-line data, calculate indicators such as MA/MACD/RSI, and judge trends and trading signals. Trigger scenarios: (1) "Analyze the technical aspects of Moutai" (2) "Check if this stock is buyable" (3) "Technical analysis 600519" (4) Used when needing to judge stock trends and trading points. Need to use data-collect to obtain data first
8installs
Sourceismxy0934/qing-skills
Added on
NPX Install
npx skill4agent add ismxy0934/qing-skills technical-analysisTags
Translated version includes tags in frontmatterSKILL.md Content (Chinese)
View Translation Comparison →Technical Analysis
Perform comprehensive technical analysis based on K-line data, output trend judgments and trading signals.
Execution
bash
python scripts/analyze.py <Stock Code> --date YYYY-MM-DD
# Example
python scripts/analyze.py 600519 --date 2025-01-01Input (Required)
Need to run first and ensure the is consistent.
data-collect--dateoutput/<Stock Code>/<Date>/data.jsonData Flow
Read: output/<Stock Code>/<Date>/data.json
Output: output/<Stock Code>/<Date>/analysis.jsonOutput (Stable Fields)
- : Trend status, strength, whether it is bullish
trend - : Bias ratio and safety judgment
bias - : MACD status and signal
macd - : Volume status
volume - : Action suggestion, score, reasons and risks
signal
Core Trading Philosophy
- Strict Entry Strategy - Never buy when the bias ratio > 5%
- Trend Trading - MA5 > MA10 > MA20 in a bullish arrangement
- Buying Preference - Shrink volume pullback to MA5/MA10 support
Output
json
{
"trend": {"status": "Bullish Arrangement", "strength": 75, "is_bullish": true},
"bias": {"ma5": 0.30, "status": "Safe"},
"macd": {"status": "GOLDEN_CROSS", "signal": "Golden Cross, trend upward"},
"volume": {"status": "SHRINK_VOLUME_DOWN", "trend": "Shrink Volume Pullback"},
"signal": {"action": "Buy", "score": 72, "reasons": [...], "risks": [...]}
}Scoring Criteria
| Score | Signal |
|---|---|
| 75+ | Strong Buy |
| 60-74 | Buy |
| 45-59 | Hold |
| 30-44 | Wait and See |
| <30 | Sell |
For detailed indicator explanations, see references/indicators.md
Failure Handling
- Cannot find : Run
data.jsonfirst (with the samedata-collect)--date - fields are missing/empty: Check if
data.jsonpulled data successfully; expanddata-collectif necessary--days - Indicators cannot be calculated (insufficient samples): Try increasing (e.g., 120/240)
data-collect --days