longbridge-smc
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineselongbridge-smc
longbridge-smc
聪明钱概念(Smart Money Concepts / ICT)信号引擎:识别 BOS(Break of Structure 结构突破)、ChoCH(Change of Character 特性变化)、FVG(Fair Value Gap 公允价值缺口)、Order Block(订单块)、流动性抓取,综合判断机构资金偏向(多头/空头结构)。
Smart Money Concepts (SMC / ICT) Signal Engine: Identifies BOS (Break of Structure), ChoCH (Change of Character), FVG (Fair Value Gap), Order Block, and Liquidity Grab to comprehensively determine institutional capital bias (bullish/bearish structure).
Requirements
Requirements
⚠️ 额外依赖 / Extra dependency required此 skill 优先使用第三方 Python 库 smartmoneyconcepts,使用前建议安装:bashpip install smartmoneyconcepts若未安装,LLM 自动回退到手动 Python 实现 BOS / ChoCH / FVG / Order Block 基础逻辑。 This skill prefers the smartmoneyconcepts library:. Falls back to manual implementation if unavailable.pip install smartmoneyconcepts
Response language: match the user's input language — Simplified Chinese / Traditional Chinese / English.
⚠️ Extra dependency requiredThis skill prioritizes using the third-party Python library smartmoneyconcepts. It is recommended to install it before use:bashpip install smartmoneyconceptsIf not installed, the LLM will automatically fall back to manual Python implementation of basic logic for BOS / ChoCH / FVG / Order Block. This skill prefers the smartmoneyconcepts library:. Falls back to manual implementation if unavailable.pip install smartmoneyconcepts
Response language: match the user's input language — Simplified Chinese / Traditional Chinese / English.
When to use
When to use
- 用户询问 SMC/ICT 分析:"AAPL 的订单块在哪里"、"TSLA 有没有 BOS"、"700.HK FVG 分析"
- 判断结构突破(BOS)或特性变化(ChoCH)信号
- 定位公允价值缺口(FVG)和订单块作为潜在支撑/阻力区域
- 用户提到"聪明钱"、"机构资金"、"流动性抓取"、"ICT"等关键词
- User asks about SMC/ICT analysis: "Where is the Order Block for AAPL", "Does TSLA have a BOS", "FVG analysis for 700.HK"
- Determine Break of Structure (BOS) or Change of Character (ChoCH) signals
- Locate Fair Value Gap (FVG) and Order Block as potential support/resistance zones
- User mentions keywords like "Smart Money", "Institutional Capital", "Liquidity Grab", "ICT", etc.
Workflow
Workflow
- 提取标的代码,标准化为 格式。
<CODE>.<MARKET> - 获取 OHLCV 数据(日线为主,建议同时拉 1 小时线用于多周期确认):
bash
# 日线(主要结构判断) longbridge kline <SYMBOL> --period day --count 200 --format json # 1小时线(辅助精确入场区域,可选) longbridge kline <SYMBOL> --period 60m --count 400 --format json - 尝试使用 smartmoneyconcepts 库分析:
python
from smartmoneyconcepts import smc import pandas as pd # ohlcv: pd.DataFrame,列:open/high/low/close/volume bos_choch = smc.bos_choch(ohlcv) # BOS / ChoCH fvg = smc.fair_value_gaps(ohlcv) # FVG 区间 ob = smc.ob(ohlcv) # 订单块 - 若 smartmoneyconcepts 不可用,使用 Python 手动实现基础逻辑:
- BOS:价格突破最近一个摆动高点(看涨 BOS)或摆动低点(看跌 BOS)
- ChoCH:在下降趋势中首次突破摆动高点(多头 ChoCH),或在上升趋势中首次跌破摆动低点(空头 ChoCH)
- FVG:连续三根 K 线中,第一根高点低于第三根低点(看涨 FVG),或第一根低点高于第三根高点(看跌 FVG)
- Order Block:BOS/ChoCH 前最后一根方向相反的 K 线
- 综合多信号判断机构偏向,输出多头结构或空头结构结论。
若环境未安装 smartmoneyconcepts,提示用户运行,或自动回退至手动实现。 若不确定 CLI 参数,先运行pip install smartmoneyconcepts查看最新参数。longbridge kline --help
- Extract the target code and standardize it to the format.
<CODE>.<MARKET> - Obtain OHLCV data (daily chart as primary, 1-hour chart recommended for multi-period confirmation):
bash
# Daily chart (main structure judgment) longbridge kline <SYMBOL> --period day --count 200 --format json # 1-hour chart (assist precise entry zone, optional) longbridge kline <SYMBOL> --period 60m --count 400 --format json - Try to analyze using the smartmoneyconcepts library:
python
from smartmoneyconcepts import smc import pandas as pd # ohlcv: pd.DataFrame, columns: open/high/low/close/volume bos_choch = smc.bos_choch(ohlcv) # BOS / ChoCH fvg = smc.fair_value_gaps(ohlcv) # FVG ranges ob = smc.ob(ohlcv) # Order Block - If smartmoneyconcepts is unavailable, implement basic logic manually in Python:
- BOS: Price breaks through the recent swing high (bullish BOS) or swing low (bearish BOS)
- ChoCH: First break above a swing high in a downtrend (bullish ChoCH), or first break below a swing low in an uptrend (bearish ChoCH)
- FVG: In three consecutive candlesticks, the high of the first is lower than the low of the third (bullish FVG), or the low of the first is higher than the high of the third (bearish FVG)
- Order Block: The last opposite-direction candlestick before BOS/ChoCH
- Synthesize multiple signals to judge institutional bias and output conclusions of bullish or bearish structure.
If smartmoneyconcepts is not installed in the environment, prompt the user to run, or automatically fall back to manual implementation. If unsure about CLI parameters, first runpip install smartmoneyconceptsto check the latest parameters.longbridge kline --help
CLI
CLI
bash
undefinedbash
undefined日线数据(主要数据源)
Daily data (primary data source)
longbridge kline AAPL.US --period day --count 200 --format json
longbridge kline AAPL.US --period day --count 200 --format json
1小时数据(辅助多周期确认,可选)
1-hour data (assist multi-period confirmation, optional)
longbridge kline 700.HK --period 60m --count 400 --format json
undefinedlongbridge kline 700.HK --period 60m --count 400 --format json
undefinedOutput
Output
以自然语言呈现,包含:
- 结构判断:多头结构(Bullish Structure)/ 空头结构(Bearish Structure)
- BOS / ChoCH 信号:最近突破/变化位置、价格、日期
- FVG 区间:[FVG 低点, FVG 高点]、方向(看涨/看跌)、是否已被填充
- 订单块(Order Block):[OB 低点, OB 高点]、方向、强度评级
- 流动性区域:近期高点(卖方流动性)/ 近期低点(买方流动性)
- 综合建议:机构偏向 + 潜在入场区域 + 失效条件
- 数据来源:Longbridge Securities / 数据来源:长桥证券 / 數據來源:長橋證券
Presented in natural language, including:
- Structure Judgment: Bullish Structure / Bearish Structure
- BOS / ChoCH Signals: Recent break/change position, price, date
- FVG Ranges: [FVG Low, FVG High], direction (bullish/bearish), whether filled
- Order Block: [OB Low, OB High], direction, strength rating
- Liquidity Zones: Recent highs (seller liquidity) / Recent lows (buyer liquidity)
- Comprehensive Suggestions: Institutional bias + potential entry zone + invalidation conditions
- Data Source: Longbridge Securities / 数据来源:长桥证券 / 數據來源:長橋證券
Error handling
Error handling
| 情形 | 简体回复 | 繁體回覆 / English |
|---|---|---|
| 尝试 MCP fallback;否则请安装 longbridge-terminal | 嘗試 MCP fallback;否則請安裝 longbridge-terminal / Try MCP fallback; otherwise install longbridge-terminal |
stderr 含 | 请运行 | 請運行 |
| Python 缺少 smartmoneyconcepts | 请运行 | 請運行 |
| smartmoneyconcepts API 不兼容 | 请运行 | 請升級套件 / Run |
| 其他 stderr | 原样返回错误,不静默重试 | 原樣返回錯誤 / Surface verbatim, never retry silently |
| 数据量不足(K 线少于 50 根) | 建议增大 | |
| 其他 stderr | 原样透传,不静默重试 |
| Scenario | Simplified Chinese Response | 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 lacks smartmoneyconcepts | Please run | 請運行 |
| smartmoneyconcepts API incompatible | Please run | 請升級套件 / Run |
| Other stderr | Return error as is, do not retry silently | 原樣返回錯誤 / Surface verbatim, never retry silently |
| Insufficient data (fewer than 50 candlesticks) | Suggest increasing | |
| Other stderr | Pass through as is, do not retry silently |
MCP fallback
MCP fallback
若 CLI 不可用且已配置 MCP:
| CLI 命令 | MCP 工具 |
|---|---|
| |
If CLI is unavailable and MCP is configured:
| CLI Command | MCP Tool |
|---|---|
| |
Related skills
Related skills
| 用户询问 | 路由至 |
|---|---|
| 实时股价/行情 | |
| K线图/历史价格 | |
| 缠论分型/买卖点 | |
| 艾略特波浪 | |
| 谐波形态 | |
| 资金流向/大单 | |
| 机构持仓/内部人 | |
| User Query | Routed to |
|---|---|
| Real-time stock price/market quotes | |
| Candlestick charts/historical prices | |
| Chan Theory patterns/buy-sell points | |
| Elliott Wave | |
| Harmonic Patterns | |
| Capital flow/large orders | |
| Institutional holdings/insiders | |
File layout
File layout
longbridge-smc/
└── SKILL.mdlongbridge-smc/
└── SKILL.md