Loading...
Loading...
Chan Theory Pattern Recognition — Automatically detect top/bottom fractals, Bi (upward/downward Bi), Segments, Zhongshu, and generate Buy 1/Buy 2/Buy 3/Sell 1/Sell 2/Sell 3 signals. Depends on the czsc library. Triggers: "缠论", "分型", "笔", "中枢", "线段", "一买", "二买", "三买", "一卖", "二卖", "三卖", "缠中说禅", "缠师", "纏論", "分型", "筆", "中樞", "線段", "一買", "二買", "三買", "一賣", "二賣", "三賣", "chanlun", "chan theory", "bi", "zhongshu", "buy point", "sell point", "fractal top bottom", "Chan theory".
npx skill4agent add longbridge/skills longbridge-chanlun⚠️ Extra dependency requiredThis skill depends on the third-party Python library czsc, which needs to be installed manually before use:bashpip install czscIf installation is not possible in the environment, the LLM will fall back to manually implementing basic fractal logic (lower accuracy). This skill requires the czsc Python library. Install it before use:pip install czsc
Response language: match the user's input language — Simplified Chinese / Traditional Chinese / English.
<CODE>.<MARKET>longbridge kline <SYMBOL> --period day --count 300 --format jsonRawBardtopenhighlowclosevolimport czsc
from czsc import CZSC
# bars: list of czsc.RawBar
c = CZSC(bars)
# Fractals: c.fx_list
# Bi: c.bi_list
# Segments: c.seg_list (if available)
# Zhongshu: c.zs_list (if available)If czsc is not installed in the environment, prompt the user to runfirst and then retry. If unsure about CLI parameters, runpip install czscfirst to check the latest parameters.longbridge kline --help
# Obtain daily data (main data source)
longbridge kline AAPL.US --period day --count 300 --format json
# If shorter periods are needed for auxiliary judgment (optional)
longbridge kline 700.HK --period week --count 100 --format json| Scenario | Simplified Chinese Reply | Traditional Chinese / English |
|---|---|---|
| Try MCP fallback; otherwise please install longbridge-terminal | 嘗試 MCP fallback;否則請安裝 longbridge-terminal / Try MCP fallback; otherwise install longbridge-terminal |
stderr contains | Please run | 請運行 |
| Python environment lacks czsc | Please run | 請運行 |
| czsc version incompatible | Please run | 請運行 |
| Other stderr | Return the error as is, do not retry silently | 原樣返回錯誤,不靜默重試 / Surface verbatim, never retry silently |
| CLI command | MCP tool |
|---|---|
| |
| User inquiry | Route to |
|---|---|
| Real-time stock price/market quotes | |
| K-line chart/historical prices | |
| Elliott Wave | |
| Harmonic Patterns | |
| Smart Money/SMC | |
| Capital Flow | |
longbridge-chanlun/
└── SKILL.md