본문으로 건너뛰기
cccskills
무료GitHub에 공개

chanlun

Analyze candlestick data using Chan theory, a method based on price structure. Detect turning points, movement segments, and overlapping price zones, then generate buy and sell signals and compare patterns across timeframes.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

원문원문 설명 보기

基于缠论(缠中说禅)的形态识别引擎,使用czsc库自动检测K线分型、笔、中枢,并生成一买/一卖/二买/二卖/三买/三卖等买卖点信号。支持多周期分析和形态分类(3/5/7/9/11笔形态)。

설치 방법 보기

이럴 때 유용합니다

  • Detecting turning points and segments in candlestick data
  • Generating Chan theory buy and sell signals
  • Comparing price structures across timeframes
  • Classifying patterns made of 3, 5, 7, 9, or 11 segments

포함된 파일(8)

  • SKILL.md4.1 KB
  • example_signal_engine.py6.6 KB
  • references/买卖点/一买一卖.md1.5 KB
  • references/买卖点/三买三卖.md1.9 KB
  • references/买卖点/二买二卖.md1.3 KB
  • references/核心概念/中枢.md2.0 KB
  • references/核心概念/分型.md1.4 KB
  • references/核心概念/笔.md1.6 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

缠论形态识别

用途

基于缠中说禅理论的价格形态识别。缠论是一套完全基于价格结构的技术分析方法,核心链路:

原始K线 → 去包含处理 → 分型识别 → 笔检测 → 中枢构建 → 买卖点判定

适用于任何有 OHLCV 数据的市场(A股、加密货币、期货等)。

核心概念

概念说明详细文档
分型(FX)顶分型:中间K线最高;底分型:中间K线最低分型
笔(BI)相邻顶底分型之间的一段走势,最小单元笔
中枢(ZS)至少3笔构成的价格重叠区域,趋势的核心中枢

买卖点体系

买卖点含义详细文档
一买/一卖趋势结束后的第一个反转信号(背驰点)一买一卖
二买/二卖一买/一卖后回调不破底/顶的确认信号二买二卖
三买/三卖中枢上移/下移后回调不进入前中枢的信号三买三卖

依赖安装

pip install czsc requests pandas

快速上手

from czsc import CZSC, RawBar, Freq
from datetime import datetime

# 准备 RawBar 列表(需按时间正序排列)
bars = [
    RawBar(symbol="BTC-USDT", id=0, dt=datetime(2026,1,1),
           freq=Freq.D, open=70000, close=71000,
           high=72000, low=69000, vol=1000, amount=71000000),
    # ... 更多K线
]

# 创建分析器,自动检测分型/笔/中枢
c = CZSC(bars)

# 访问结果
print(c.bi_list)    # 已完成的笔
print(c.bars_ubi)   # 未完成笔中的K线

可用信号函数(czsc.signals.cxt)

czsc 内置 43 个缠论信号函数,核心如下:

函数说明类型
cxt_first_buy_V221126一买信号买卖点
cxt_first_sell_V221126一卖信号买卖点
cxt_second_bs_V230320均线辅助二买二卖买卖点
cxt_third_bs_V230318均线辅助三买三卖买卖点
cxt_third_buy_V230228笔三买辅助买卖点
cxt_double_zs_V230311两中枢组合判断BS1中枢
cxt_three_bi_V230618三笔形态分类形态
cxt_five_bi_V230619五笔形态分类形态
cxt_seven_bi_V230620七笔形态分类形态
cxt_nine_bi_V230621九笔形态分类形态
cxt_eleven_bi_V230622十一笔形态分类形态
cxt_bi_base_V230228BI基础信号(方向/转折)基础
cxt_bi_end_V230312MACD辅助笔结束辅助
cxt_range_oscillation_V230620区间震荡判断辅助
cxt_zhong_shu_gong_zhen_V221221大小级别中枢共振中枢

信号约定

  • 信号引擎输出:1=做多,-1=做空,0=观望
  • 做多条件:一买信号 或 三笔向上盘背 或 五笔类一买
  • 做空条件:一卖信号 或 三笔向下盘背 或 五笔类一卖
  • 中枢辅助:价格在中枢下沿附近做多优势,上沿附近做空优势

数据格式

czsc 接受 List[RawBar],每个 RawBar 包含:

字段类型说明
symbolstr标的代码
idint序号(从0开始)
dtdatetime时间
freqFreq频率:Freq.F1/F5/F15/F30/F60/D/W/M
openfloat开盘价
closefloat收盘价
highfloat最高价
lowfloat最低价
volfloat成交量
amountfloat成交额

实现方式

使用 czsc 库(v0.9.68+),基于纯 Python 实现(可选 Rust 加速后端)。支持增量更新,适合实时分析。

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Compare a Chinese company's US depositary receipts, Hong Kong shares, and mainland shares after adjusting for exchange rates and share ratios. Analyze pricing gaps, valuation differences, and delisting risks to support research into its different listings.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Compare A-share and H-share pricing gaps
  • Measure ADR premiums against Hong Kong shares
  • Review US delisting risks and Hong Kong listing alternatives
HKUDS/Vibe-Trading3.6만2026년 10월 22일 업데이트

akshare

무료

Retrieve stock prices, futures quotes, exchange rates, and economic indicators with the free Python library AKShare. The skill explains market-specific functions, symbol formats, and data preparation for analysis and testing strategies against historical data.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Retrieve historical prices for Chinese, US, and Hong Kong stocks
  • Collect Chinese GDP and consumer price data
  • Check futures quotes and foreign exchange rates
HKUDS/Vibe-Trading3.6만2026년 10월 22일 업데이트

alpha-zoo

무료

Explore bundled libraries of investment factors, signals used to compare securities, and inspect individual formulas and metadata. Evaluate a factor or an entire library across a chosen universe and period, producing aggregate performance statistics and an HTML report.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Find bundled momentum or reversal factors
  • Inspect a named factor's formula and metadata
  • Compare a factor library across a chosen universe and period
HKUDS/Vibe-Trading3.6만2026년 10월 22일 업데이트

Assess whether a Chinese A-share company may receive ST or *ST risk warnings next financial year. Review financial forecasts, dividends, audit opinions, and regulatory penalties, then report risk severity separately from confidence in the prediction.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Reviewing a Chinese A-share company's future ST risk
  • Assessing escalation risk for an existing ST or *ST stock
  • Checking revenue, equity, and dividend warning signs
HKUDS/Vibe-Trading3.6만2026년 10월 22일 업데이트

Plan portfolio allocations across assets using risk, correlations, return forecasts, and trading costs. Compare five optimization methods, produce settings for config.json, and define rebalancing rules that adjust holdings back toward their target weights.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Comparing allocations across stocks, bonds, and gold
  • Choosing an optimizer based on return forecasts and correlations
  • Preparing portfolio settings for config.json
HKUDS/Vibe-Trading3.6만2026년 10월 22일 업데이트

Diagnose failed or abnormal backtests, which test trading strategies on historical data. Inspect result files, strategy code, and configuration to identify bugs, make targeted repairs, rerun tests, and verify the updated metrics.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Investigating backtest execution errors
  • Finding why a strategy produces no trades
  • Checking delayed trades or low capital usage
HKUDS/Vibe-Trading3.6만2026년 10월 22일 업데이트

HKUDS의 스킬 모두 보기

이 스킬의 문제 신고