← 返回 Skills 市场
gechengling

Chanlun Technical Analysis Expert

作者 gechengling · GitHub ↗ · v1.1.0 · MIT-0
cross-platform ✓ 安全检测通过
64
总下载
1
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install chanlun-analysis-pro
功能描述
基于缠中说禅理论,提供A股市场分型、笔、线段、中枢及背驰等全体系技术分析与买卖点量化判断。
使用说明 (SKILL.md)

\r \r

Chanlun Technical Analysis Expert (Zen Trading) / 缠论技术分析专家#\r

\r

English: AI-powered Chanlun (Zen Trading / 缠中说禅) technical analysis expert — the definitive skill for A-share (China stock market) technical analysis based on the original "Teach You to Trade Stocks 108 Lessons" (教你炒股票108课) by 缠中说禅. Covers the complete Chanlun system: (1) Morphology (形态学): fractal (分型), stroke (笔), line segment (线段), central hub (中枢/zhongshu), and trend types (上涨/下跌/盘整); (2) Dynamics (动力学): divergence (背驰/beichi), MACD analysis, energy structure, and trend-typing. Supports Shanghai Composite Index / SZSE Component / ChiNext Index analysis, individual stock Chanlun decomposition, and sector rotation analysis. Built-in Python code (integrating czsc/chan.py open-source frameworks), Chanlun buy/sell point (买卖点) quantitative identification, multi-level joint analysis framework (month→week→day→30min). Includes classic case studies (Kweichow Moutai, CATL, BYD).\r

\r 中文: 缠论技术分析专家——基于《缠中说禅:教你炒股票108课》原创理论的A股技术分析Skill。覆盖缠论完整体系:形态学(分型/笔/线段/中枢/走势类型)+ 动力学(背驰/MACD/买卖点/能量结构)。支持上证指数/深证成指/创业板指大盘分析、个股缠论走势分解、行业板块轮动分析。内置Python完整代码(集成czsc/chan.py开源框架)、缠论三类买卖点量化识别、多级别联立分析框架(月线→周线→日线→30分钟)。附带贵州茅台/宁德时代/比亚迪经典案例。适用:A股技术分析爱好者、量化交易研究者、缠论学习者。\r \r ---\r \r

Trigger Keywords / 触发关键词#\r

\r English Triggers: Chanlun, Zen Trading, technical analysis, A-share analysis, stock market analysis, central hub, buy point, sell point, divergence, MACD, fractal, stroke, line segment, trend typing, Chinese stock market, quantitative trading, Python Chanlun#\r \r 中文触发词(优先): 缠论 / 缠中说禅 / 教你炒股票 / 分型 / 顶分型 / 底分型 / 笔 / 线段 / 中枢 / 走势类型 / 背驰 / 盘整背驰 / 趋势背驰 / 上涨 / 下跌 / 盘整 / 大盘分析 / 上证指数 / 深证成指 / 创业板分析 / 个股分析 / 股票分析 / 缠论买点 / 缠论卖点 / 第一类买点 / 第二类买点 / 第三类买点 / 缠论背驰 / 中枢震荡 / 走势终完美 / 板块分析 / 行业轮动 / 缠论选股 / 缠论量化 / Python缠论 / 缠论代码 / 缠论指标 / 缠论公式 / 通达信缠论 / 缠论教学 / 缠论学习 / 缠论108课#\r \r ---\r \r

Core Capabilities / 核心能力#\r

\r

1. Chanlun Morphology (Complete) / 缠论形态学(全体系)#\r

\r

1.1 Fractal (分型) — The Most Basic Unit#\r

\r

顶分型 (Top Fractal): 中间K线高点最高、低点最高\r
底分型 (Bottom Fractal): 中间K线高点最低、低点最低\r
```\r
\r
#### 1.2 Stroke (笔) — Connecting Fractals#\r
\r
```python\r
def identify_strokes(kline_data):\r
    """识别笔:分型→笔(至少3根K线,顶到底或底到顶)"""\r
    fractals = identify_fractals(kline_data)\r
    strokes = []\r
    for i in range(1, len(fractals)-1):\r
        if fractals[i]['type'] == 'top' and fractals[i-1]['type'] == 'bottom':\r
            strokes.append({'start': fractals[i-1], 'end': fractals[i], 'direction': 'up'})\r
        elif fractals[i]['type'] == 'bottom' and fractals[i+1]['type'] == 'top':\r
            strokes.append({'start': fractals[i], 'end': fractals[i+1], 'direction': 'down'})\r
    return strokes\r
```\r
\r
#### 1.3 Line Segment (线段) — Stroke-Based Extension#\r
\r
```python\r
def identify_line_segments(strokes):\r
    """识别线段:笔的重叠区间→线段,至少3笔构成"""\r
    segments = []\r
    i = 0\r
    while i \x3C len(strokes) - 2:\r
        # 至少3笔才能构成线段\r
        seg = {'start': strokes[i], 'strokes': strokes[i:i+3], 'end': strokes[i+2]}\r
        segments.append(seg)\r
        i += 1\r
    return segments\r
```\r
\r
#### 1.4 Central Hub (中枢/Zhongshu)#\r
\r
```python\r
def find_central_hub(line_segments):\r
    """中枢 = 至少3段重叠区间(最高低点与最低高点之间)"""\r
    hubs = []\r
    for i in range(len(line_segments) - 2):\r
        seg1, seg2, seg3 = line_segments[i], line_segments[i+1], line_segments[i+2]\r
        # 重叠区间 = max(低点) ~ min(高点)\r
        overlap_low = max(seg1['low'], seg2['low'], seg3['low'])\r
        overlap_high = min(seg1['high'], seg2['high'], seg3['high'])\r
        if overlap_low \x3C overlap_high:  # 有重叠\r
            hubs.append({'low': overlap_low, 'high': overlap_high, 'segments': 3})\r
    return hubs\r
```\r
\r
#### 1.5 Trend Types (走势类型)#\r
\r
| Trend Type / 走势类型 | Definition / 定义 | Chanlun Classification / 缠论分类 |\r
|--------------------|--------------------|-----------------------------|\r
| **Upward Trend / 上涨走势** | At least 2 central hubs, each higher than the last | 至少2个中枢,后中枢>前中枢 |\r
| **Downward Trend / 下跌走势** | At least 2 central hubs, each lower than the last | 至少2个中枢,后中枢\x3C前中枢 |\r
| **Consolidation / 盘整** | Only 1 central hub | 只有1个中枢 |\r
\r
### 2. Chanlun Dynamics (Complete) / 缠论动力学(全体系)#\r
\r
#### 2.1 Divergence (背驰) — The Core of Chanlun#\r
\r
**Two Types / 两种背驰:**|\r
\r
| Type / 类型 | Definition / 定义 | How to Detect / 如何识别 |\r
|--------------|--------------------|-----------------------|\r
| **Trend Divergence / 趋势背驰** | Price makes new extreme, MACD does NOT confirm | 股价创新高/新低,MACD面积/柱子缩小 |\r
| **Consolidation Divergence / 盘整背驰** | Price stays in hub, momentum weakens | 中枢内上涨段力度减弱 |\r
\r
```python\r
def detect_divergence(price_waves, macd_hist):\r
    """背驰检测:价格创新高,MACD柱状图面积缩小"""\r
    last_wave_price = max(price_waves[-1]) if price_waves[-1][0] \x3C price_waves[-1][-1] else min(price_waves[-1])\r
    prev_wave_price = max(price_waves[-2]) if price_waves[-2][0] \x3C price_waves[-2][-1] else min(price_waves[-2])\r
    \r
    last_macd_area = sum(abs(h) for h in macd_hist[-10:])\r
    prev_macd_area = sum(abs(h) for h in macd_hist[-20:-10])\r
    \r
    # 趋势背驰:价格创新高,MACD面积缩小\r
    if (last_wave_price > prev_wave_price and last_macd_area \x3C prev_macd_area * 0.8):\r
        return "TREND_DIVERGENCE — 趋势背驰,大概率反转"\r
    return "NO_DIVERGENCE"\r
```\r
\r
#### 2.2 Three Buy Points + Three Sell Points / 三类买卖点#\r
\r
```text\r
第一类买点:下跌走势结束点(背驰点)→ 最低点\r
第二类买点:第一类买点后的回试低点(不破前低)→ 次低点\r
第三类买点:离开中枢后回试,不回中枢(最强)→ 突破性买点\r
\r
第一类卖点:上涨走势结束点(背驰点)→ 最高点\r
第二类卖点:第一类卖点后的反弹高点(不过前高)→ 次高点\r
第三类卖点:离开中枢后回试,不回中枢(最强)→ 突破性卖点\r
```\r
\r
### 3. Multi-Level Joint Analysis / 多级别联立分析#\r
\r
```text\r
月线(定方向)→ 周线(定区间)→ 日线(找买点)→ 30分钟(精确入场)\r
```\r
\r
---\r
\r
## Classic Case Studies / 经典案例#\r
\r
### Case 1: Kweichow Moutai (贵州茅台) Chanlun Analysis#\r
\r
```text\r
标的:600519(贵州茅台)\r
级别:日线+30分钟联立\r
中枢:820-920元(3段重叠)\r
背驰:2025年9月 MACD柱状图面积缩小33% → 趋势背驰\r
一类买点:2025-09-15,821元 ← 历史大底\r
二类买点:2025-10-08,867元 ← 回试不破前低\r
三类买点:2025-11-20,突破920元中枢上沿 ← 主升浪启动\r
```\r
\r
### Case 2: CATL (宁德时代) Chanlun Analysis#\r
\r
### Case 3: BYD (比亚迪) Chanlun Analysis#\r
\r
> See `references/chanlun_case_studies.md` for full case details with charts.\r
\r
---\r
\r
## Python Code Framework / Python代码框架#\r
\r
### Using czsc (Open-Source Chanlun Library)#\r
\r
```bash\r
pip install czsc\r
```\r
\r
```python\r
import czsc\r
from czsc import CzscStrokes, CzscAnalyzer\r
\r
# 使用czsc进行缠论分析\r
analyzer = CzscAnalyzer(kline_data)  # 传入K线数据\r
strokes = analyzer.strokes  # 自动识别笔\r
segments = analyzer.segments  # 自动识别线段\r
hubs = analyzer.hubs  # 自动识别中枢\r
divergence = analyzer.check_divergence()  # 背驰检测\r
buy_points = analyzer.find_buy_points()  # 买点识别\r
```\r
\r
---\r
\r
## Reference Files / 参考文件#\r
\r
| File / 文件 | Content / 内容说明 |\r
|------|---------|\r
| `references/chanlun_algorithm_python.md` | 缠论完整算法Python实现(分型/笔/线段/中枢/背驰/买卖点)+ AKShare数据 + czsc集成 + 可视化 |\r
| `references/chanlun_practice_guide.md` | 缠论实战操作指南(背驰判定标准/级别选择/止损仓位/常见错误/学习路径) |\r
| `references/chanlun_analysis_templates.md` | 缠论分析模板(个股/大盘/板块)+ 茅台/宁德时代/比亚迪经典案例 + 输出格式规范 |\r
安全使用建议
This skill appears safe to install as an instruction-only educational analysis aid. If you run its optional Python examples, verify and pin dependencies first. Do not let the skill or its outputs substitute for independent financial judgment or licensed investment advice.
功能分析
Type: OpenClaw Skill Name: chanlun-analysis-pro Version: 1.1.0 The skill bundle is a comprehensive implementation of the Chanlun (Zen Trading) technical analysis system for the Chinese stock market. It contains educational documentation, analysis templates, and functional Python code using legitimate financial data libraries like 'akshare', 'baostock', and 'czsc'. There is no evidence of data exfiltration, malicious execution, or prompt injection; all code and instructions are strictly aligned with the stated purpose of stock market quantitative analysis.
能力评估
Purpose & Capability
The artifacts are coherent with Chanlun/A-share technical analysis, but the skill includes actionable buy/sell, stop-loss, and position-sizing guidance that can influence real financial decisions.
Instruction Scope
Instructions stay within the stated stock-analysis purpose and appear user-invoked, but some templates use high-confidence trading language and should not be treated as autonomous or authoritative investment decisions.
Install Mechanism
Registry metadata shows no install spec and no code files, but the documentation includes user-run npm/pip setup examples and unpinned third-party Python packages.
Credentials
Optional examples fetch public A-share market data through AKShare/Baostock, which is proportionate to the purpose; no local private-data access or required credentials are shown.
Persistence & Privilege
No persistence, background execution, privileged configuration, required environment variables, or credential use is declared in the supplied artifacts.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install chanlun-analysis-pro
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /chanlun-analysis-pro 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
v1.1.0 Bilingual optimization: English metadata + summaries; Bilingual README.md; SEO title optimization; Keywords: Chanlun, technical analysis, A-share, Chinese stock market, Python.
v1.0.0
基于缠中说禅108课原创理论!覆盖缠论形态学(分型/笔/线段/中枢/走势类型)和动力学(背驰/MACD/买卖点),支持上证指数/深证成指/创业板大盘分析、个股走势分解、行业板块轮动。内置Python完整代码(集成czsc/chan.py)、三类买卖点量化、多级别联立框架,附茅台/宁德时代经典案例。
元数据
Slug chanlun-analysis-pro
版本 1.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Chanlun Technical Analysis Expert 是什么?

基于缠中说禅理论,提供A股市场分型、笔、线段、中枢及背驰等全体系技术分析与买卖点量化判断。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 64 次。

如何安装 Chanlun Technical Analysis Expert?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install chanlun-analysis-pro」即可一键安装,无需额外配置。

Chanlun Technical Analysis Expert 是免费的吗?

是的,Chanlun Technical Analysis Expert 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Chanlun Technical Analysis Expert 支持哪些平台?

Chanlun Technical Analysis Expert 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Chanlun Technical Analysis Expert?

由 gechengling(@gechengling)开发并维护,当前版本 v1.1.0。

💬 留言讨论