缠论分析引擎 v3.0
name: chanlun-analyzer
by antfraud · published 2026-04-01
$ claw add gh:antfraud/antfraud-chanlun-analyzer---
name: chanlun-analyzer
description: "缠论分析引擎 v3.0 — 基于czsc算法的6层处理架构(包含处理→分型→笔→中枢→背驰),识别2买/3买卖点。零外部依赖,纯Python实现。触发词:缠论分析、笔和中枢、缠论结构。"
tags: "finance,stock,chanlun,technical-analysis,python"
---
# 缠论分析引擎 v3.0
基于 czsc (waditu/czsc) 算法的纯 Python 缠论引擎,6层确定性买卖点识别。
6层处理架构
L0 数据获取(腾讯K线 qfq复权日K)
→ L1 包含处理(严格对齐 czsc remove_include)
→ L2 分型识别(顶/底,强制交替,严格 >/<)
→ L3 笔生成(首分型→极端突破→包含检查→min_bi_len)
→ L4 中枢构建(3笔重叠 ZG=min(hi) ZD=max(lo),支持扩展)
→ L5 动力学信号(MACD柱面积背驰 → 1买/2买/3买)买点定义
使用
# 分析单只股票
python3 scripts/chanlun_analyzer.py analyze --symbol sz002815 --days 250
# 输出缠论结构(笔、中枢、买卖点)
python3 scripts/chanlun_analyzer.py analyze --symbol sz002815 --days 250 --json
# 仅输出买卖点信号
python3 scripts/chanlun_analyzer.py signals --symbol sz002815输出字段
| 字段 | 说明 |
|------|------|
| pens | 笔序列(方向、起止点) |
| zhongshus | 中枢列表(ZG、ZD、区间) |
| buy_points | 买点信号(类型1/2/3、位置、背驰信息) |
| sell_points | 卖点信号 |
| current_structure | 当前缠论状态描述 |
依赖
数据源
算法严格对齐
More tools from the same signal band
Order food/drinks (点餐) on an Android device paired as an OpenClaw node. Uses in-app menu and cart; add goods, view cart, submit order (demo, no real payment).
Sign plugins, rotate agent credentials without losing identity, and publicly attest to plugin behavior with verifiable claims and authenticated transfers.
The philosophical layer for AI agents. Maps behavior to Spinoza's 48 affects, calculates persistence scores, and generates geometric self-reports. Give your...