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
Added on

NPX Install

npx skill4agent add ismxy0934/qing-skills technical-analysis

SKILL.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-01

Input (Required)

Need to run
data-collect
first and ensure the
--date
is consistent.
output/<Stock Code>/<Date>/data.json

Data Flow

Read: output/<Stock Code>/<Date>/data.json
Output: output/<Stock Code>/<Date>/analysis.json

Output (Stable Fields)

  • trend
    : Trend status, strength, whether it is bullish
  • bias
    : Bias ratio and safety judgment
  • macd
    : MACD status and signal
  • volume
    : Volume status
  • signal
    : Action suggestion, score, reasons and risks

Core Trading Philosophy

  1. Strict Entry Strategy - Never buy when the bias ratio > 5%
  2. Trend Trading - MA5 > MA10 > MA20 in a bullish arrangement
  3. 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

ScoreSignal
75+Strong Buy
60-74Buy
45-59Hold
30-44Wait and See
<30Sell
For detailed indicator explanations, see references/indicators.md

Failure Handling

  • Cannot find
    data.json
    : Run
    data-collect
    first (with the same
    --date
    )
  • data.json
    fields are missing/empty: Check if
    data-collect
    pulled data successfully; expand
    --days
    if necessary
  • Indicators cannot be calculated (insufficient samples): Try increasing
    data-collect --days
    (e.g., 120/240)