agentleFS
ZICXRZICXR/A-Stock-Skills/skills/04-stock-analysis/stock-technical-analysis/SKILL.md

stock-technical-analysis

Skill26 starsChanged 5 months agoMITView on GitHub

A 股个股技术面分析。当用户需要对某只股票做技术面分析时,Claude 应使用此 Skill。支持 K 线形态识别 (十字星/锤子线/吞没/早晨之星/黄昏之星)、趋势研判 (均线多头/空头/MACD 金叉死叉)、超买超卖 (KDJ/RSI)、支撑压力位 (R1/R2/S1/S2) 计算、综合买卖信号生成 (买入/卖出/观望)。

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. ai-eastmoney/EastmoneySkills★ 4same name
    2. GraceXiaoo/EastmoneySkills★ 4same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository10 other files it gives its agents.

The file

Files
SKILL.md

A 股个股技术面分析 Skill

何时使用

  • 用户要求分析某只股票的技术面
  • 用户需要 K 线形态识别
  • 用户需要买卖信号
  • 用户需要支撑压力位
  • 用户需要超买超卖判断

提供能力

K线数据

  • get_kline(code, days, adjust) - 历史 K 线

K线形态

  • detect_patterns(df) - 形态识别 (十字星/锤子线/吞没/早晨之星/黄昏之星)

趋势研判

  • analyze_trend(df) - 综合趋势 (均线+MACD)
  • generate_trading_signal(df) - 买卖信号 (买入/卖出/观望)

超买超卖

  • detect_obs(df) - KDJ + RSI 超买超卖

支撑压力

  • calc_support_pressure(df, window) - 支撑压力位 (R1/R2/S1/S2)

综合

  • full_technical_analysis(code, days) - 一键综合分析

使用方式

python main.py kline 000001 --days 120 --adjust qfq   # K线
python main.py trend 000001 --days 60                   # 趋势
python main.py signal 000001 --days 60                  # 买卖信号
python main.py patterns 000001 --days 5                 # K线形态
python main.py full 000001 --days 120                   # 综合分析

Python API

from skills.04-stock-analysis.stock-technical-analysis.main import full_technical_analysis

result = full_technical_analysis("000001", days=120)
# {
#   'patterns': [{'date': ..., 'pattern': '锤子线', 'signal': '看涨'}],
#   'trend': {'trend': '上涨', 'score': 4, 'signals': [...]},
#   'overbought_oversold': {'level': '超买', 'K': 88, 'D': 85, 'J': 95},
#   'support_pressure': {'R1': 13.5, 'S1': 12.0, ...},
#   'trading_signal': {'signal': '买入', 'strength': '强', 'buy_signals': [...], 'sell_signals': [...]}
# }

买卖信号生成规则

买入信号 (满足>=2个且多于卖出):

  • 均线多头排列
  • MACD 金叉
  • KDJ 低位 (<50) 金叉
  • 放量上涨 (量比 > 1.5)

卖出信号 (满足>=2个且多于买入):

  • 均线空头排列
  • MACD 死叉
  • KDJ 高位 (>50) 死叉
  • 放量下跌

K线形态

形态信号描述
十字星反转多空胶着, 关注变盘
锤子线看涨下影线长, 多方力量
看涨吞没看涨阳包阴, 强势反转
看跌吞没看跌阴包阳, 弱势反转

依赖

akshare>=1.12.0
pandas>=1.5.0
numpy>=1.22.0

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.