Czsc Ccxt Analysis logo

Czsc Ccxt Analysis

Community
Lzh-xbccz
czsc-ccxt-analysis

缠论技术分析 — czsc官方全API,CCXT数据源,多级别联立,lightweight-charts可视化+自动Markdown报告。触发: 缠论/czsc/中枢/分型/笔

Overview

PublisherLzh-xbccz
Repositoryhermes-finance
Skill nameczsc-ccxt-analysis
Stars
30
Forks
10
Bundled files
2
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by Lzh-xbccz on GitHub. Read the source before you install it.

Installation

Install the Czsc Ccxt Analysis AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Lzh-xbccz/hermes-finance/tree/main/skills/czsc-ccxt-analysis
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Lzh-xbccz/hermes-finance.git /tmp/hermes-finance
mkdir -p .claude/skills
cp -r /tmp/hermes-finance/skills/czsc-ccxt-analysis .claude/skills/czsc-ccxt-analysis
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Czsc Ccxt Analysis in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Czsc Ccxt Analysis on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Czsc Ccxt Analysis is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

缠论技术分析 (czsc v4.0 — v1.0.0rc8 全API + lightweight-charts)

基于 waditu/czsc v1.0.0rc8(2026-06-16 从源码构建)
官方全链路:ccxt_connector → CZSC → call_signal → lightweight-charts → Markdown 报告


环境

已安装: czsc 1.0.0rc8 (源码构建), ccxt 4.5.59

从源码升级

bash
bash install.sh  # 一键: Rust + czsc编译 + Python依赖

详见 references/czsc-build.md


API 速查

1. 数据获取

python
from czsc.connectors.ccxt_connector import get_raw_bars
from czsc import format_standard_kline, Freq

df = get_raw_bars('BTCUSDT', '4h', sdt='20260601', edt='20260616')
bars = format_standard_kline(df, Freq.F240)  # ⚠️ 必须传 Freq!

2. 缠论核心对象

python
c = CZSC(bars, max_bi_num=50)
c.bi_list       # List[BI]: .fx_a, .fx_b, .direction, .power, .high, .low
c.fx_list       # List[FX]: .dt, .fx, .has_zs, .low, .high
c.ubi_fxs       # 中枢信息在这里: [f for f in c.ubi_fxs if f.has_zs]
c.ubi           # ⚠️ List[str],不是BI对象!

3. 信号系统(222个信号,v1.0.0rc8)

python
from czsc._native.signals import call_signal

# v1.0.0rc8 新 API:信号名字符串调用
res = call_signal('cxt_first_buy_V221126', c)   # 一买
res = call_signal('cxt_decision_V240614', c)     # 综合决策(⭐最重要)
res = call_signal('cxt_bi_end_V230104', c)       # 笔结束

# 结果: [Signal('240分钟_D1B_BUY1_其他_任意_任意_0')]

4. 可视化(lightweight-charts)

python
from czsc.utils.plotting.lightweight import plot_czsc

# 暗色主题
plot_czsc(c, path='chart.html', theme='dark', title='BTC 4H')
plot_czsc(c, path='chart.html', theme='dark', tail_bars=200)  # 仅最近200根

GitHub HEAD 新功能(v1.0.0rc8 已安装)

功能状态
lightweight-charts✅ plot_czsc(c, output="html")
CLI (czsc analyze/backtest/plot/signals/bench)✅
models 模块✅
resample_bars⚠️ Freq.D/W/M 可用,F240 报错(市场时区)

⚡ 实战决策信号优先级

cxt_decision_V240614 是最高价值信号 — 直接给出交易方向:

  • "开多_任意_任意_0" → 🟢 做多
  • "开空_任意_任意_0" → 🔴 做空

多级别共振决断(2026-06-16 BTC 15min 验证):

综合决策=开多 + 二买 + 5min反转↑ → 🟢 强做多
综合决策=开多 + 一买 + 笔结束      → 🟢 做多
二买 + 笔结束 + 无综合决策         → 🟡 观望偏多
中枢破位 + 一卖                    → 🔴 不做多

⛔ 关键坑点

1. get_raw_bars API

python
# ❌ 旧: get_raw_bars('ZECUSDT', '1h', 'binance', num=100)
# ✅ 新: get_raw_bars('ZECUSDT', '1h', sdt='20260601', edt='20260616')

2. format_standard_kline 需要 Freq

python
# ❌ format_standard_kline(df)
# ✅ format_standard_kline(df, Freq.F240)

3. CZSC.to_echarts/to_plotly 返回 "not implemented"

用 lightweight.plot_czsc() 替代,支持 dark theme + tail_bars

4. 日线漏笔(MIN_BI_LEN=6)

快速崩盘用 4H (F240) 分析

5. CZSC 构造不接受 freq/verbose

python
# ✅ CZSC(bars, max_bi_num=50)

6. c.ubi 是 List[str]

只判长度 len(c.ubi),不能遍历取属性

7. resample_bars 限制

Freq.D/W/M ✅ | Freq.F240/F60 ❌(市场时区问题) 需4H数据直接用 get_raw_bars(period='4h')

8. generate_czsc_signals warmup

需要 init_n(=500) 根以上 K线,不够用 init_n=50


🖥️ 平台注意事项

  • 终端安全层会隐藏 ghp_ 令牌(替换为 ***),用 xxd 确认原始字节

级别选择

级别Freqperiod适用
日线D1d月级趋势
4HF2404h短线核心
1HF601h日内
15minF1515m入场确认
bash
# 多级别联立 + 信号 + dark 图表 + 报告(含背驰+模式识别)
python3 scripts/czsc_analyze.py BTCUSDT --chart --report
python3 scripts/czsc_analyze.py ETHUSDT --freqs 4h,1h,15m --chart

🆕 v4.1 新增:背驰分析 + 模式识别(源自 zengbin93/czsc_skills)

scripts/czsc_analyze.py 自动输出以下额外分析:

背驰分析

  • 同方向相邻笔 → 比较振幅 → 判断趋势衰竭
  • 下跌背驰:创新低但振幅 < 前笔 70% → 🟢 一买机会
  • 上涨背驰:创新高但振幅 < 前笔 70% → ⚠️ 一卖风险

买卖点模式识别

  • 分型回调手动判断:一买/二买/一卖/二卖候补
  • 含具体价位和判断条件
  • 与信号函数互补(信号给 ✅/❌,模式给"为什么")

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Czsc Ccxt Analysis AI skill do?

缠论技术分析 — czsc官方全API,CCXT数据源,多级别联立,lightweight-charts可视化+自动Markdown报告。触发: 缠论/czsc/中枢/分型/笔

Why use Czsc Ccxt Analysis on TypingMind?

Because you install it once and use it with any model. Czsc Ccxt Analysis is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Czsc Ccxt Analysis in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Lzh-xbccz/hermes-finance/tree/main/skills/czsc-ccxt-analysis. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Czsc Ccxt Analysis?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Czsc Ccxt Analysis?

As many as you like. As long as a model supports skills, you can use Czsc Ccxt Analysis with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Czsc Ccxt Analysis AI skill free?

Yes. It is published on GitHub by Lzh-xbccz under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇