longbridge-smc

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

longbridge-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,使用前建议安装:
bash
pip install smartmoneyconcepts
若未安装,LLM 自动回退到手动 Python 实现 BOS / ChoCH / FVG / Order Block 基础逻辑。 This skill prefers the smartmoneyconcepts library:
pip install smartmoneyconcepts
. Falls back to manual implementation if unavailable.
Response language: match the user's input language — Simplified Chinese / Traditional Chinese / English.
⚠️ Extra dependency required
This skill prioritizes using the third-party Python library smartmoneyconcepts. It is recommended to install it before use:
bash
pip install smartmoneyconcepts
If 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:
pip install smartmoneyconcepts
. Falls back to manual implementation if unavailable.
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

  1. 提取标的代码,标准化为
    <CODE>.<MARKET>
    格式。
  2. 获取 OHLCV 数据(日线为主,建议同时拉 1 小时线用于多周期确认):
    bash
    # 日线(主要结构判断)
    longbridge kline <SYMBOL> --period day --count 200 --format json
    # 1小时线(辅助精确入场区域,可选)
    longbridge kline <SYMBOL> --period 60m --count 400 --format json
  3. 尝试使用 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)                 # 订单块
  4. 若 smartmoneyconcepts 不可用,使用 Python 手动实现基础逻辑:
    • BOS:价格突破最近一个摆动高点(看涨 BOS)或摆动低点(看跌 BOS)
    • ChoCH:在下降趋势中首次突破摆动高点(多头 ChoCH),或在上升趋势中首次跌破摆动低点(空头 ChoCH)
    • FVG:连续三根 K 线中,第一根高点低于第三根低点(看涨 FVG),或第一根低点高于第三根高点(看跌 FVG)
    • Order Block:BOS/ChoCH 前最后一根方向相反的 K 线
  5. 综合多信号判断机构偏向,输出多头结构或空头结构结论。
若环境未安装 smartmoneyconcepts,提示用户运行
pip install smartmoneyconcepts
,或自动回退至手动实现。 若不确定 CLI 参数,先运行
longbridge kline --help
查看最新参数。
  1. Extract the target code and standardize it to the
    <CODE>.<MARKET>
    format.
  2. 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
  3. 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
  4. 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
  5. 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
pip install smartmoneyconcepts
, or automatically fall back to manual implementation. If unsure about CLI parameters, first run
longbridge kline --help
to check the latest parameters.

CLI

CLI

bash
undefined
bash
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
undefined
longbridge kline 700.HK --period 60m --count 400 --format json
undefined

Output

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
command not found: longbridge
尝试 MCP fallback;否则请安装 longbridge-terminal嘗試 MCP fallback;否則請安裝 longbridge-terminal / Try MCP fallback; otherwise install longbridge-terminal
stderr 含
not logged in
请运行
longbridge auth login
請運行
longbridge auth login
/ Run
longbridge auth login
Python 缺少 smartmoneyconcepts请运行
pip install smartmoneyconcepts
;自动回退手动实现
請運行
pip install smartmoneyconcepts
/ Run
pip install smartmoneyconcepts
; fallback to manual implementation
smartmoneyconcepts API 不兼容请运行
pip install --upgrade smartmoneyconcepts
請升級套件 / Run
pip install --upgrade smartmoneyconcepts
其他 stderr原样返回错误,不静默重试原樣返回錯誤 / Surface verbatim, never retry silently
数据量不足(K 线少于 50 根)建议增大
--count
或切换更高周期
其他 stderr原样透传,不静默重试
ScenarioSimplified Chinese ResponseTraditional Chinese / English
command not found: longbridge
Try MCP fallback; otherwise please install longbridge-terminal嘗試 MCP fallback;否則請安裝 longbridge-terminal / Try MCP fallback; otherwise install longbridge-terminal
stderr contains
not logged in
Please run
longbridge auth login
請運行
longbridge auth login
/ Run
longbridge auth login
Python lacks smartmoneyconceptsPlease run
pip install smartmoneyconcepts
; automatically fall back to manual implementation
請運行
pip install smartmoneyconcepts
/ Run
pip install smartmoneyconcepts
; fallback to manual implementation
smartmoneyconcepts API incompatiblePlease run
pip install --upgrade smartmoneyconcepts
請升級套件 / Run
pip install --upgrade smartmoneyconcepts
Other stderrReturn error as is, do not retry silently原樣返回錯誤 / Surface verbatim, never retry silently
Insufficient data (fewer than 50 candlesticks)Suggest increasing
--count
or switching to a higher period
Other stderrPass through as is, do not retry silently

MCP fallback

MCP fallback

若 CLI 不可用且已配置 MCP:
CLI 命令MCP 工具
longbridge kline
mcp__longbridge__history_candlesticks
If CLI is unavailable and MCP is configured:
CLI CommandMCP Tool
longbridge kline
mcp__longbridge__history_candlesticks

Related skills

Related skills

用户询问路由至
实时股价/行情
longbridge-quote
K线图/历史价格
longbridge-kline
缠论分型/买卖点
longbridge-chanlun
艾略特波浪
longbridge-elliott
谐波形态
longbridge-harmonic
资金流向/大单
longbridge-capital-flow
机构持仓/内部人
longbridge-flows
User QueryRouted to
Real-time stock price/market quotes
longbridge-quote
Candlestick charts/historical prices
longbridge-kline
Chan Theory patterns/buy-sell points
longbridge-chanlun
Elliott Wave
longbridge-elliott
Harmonic Patterns
longbridge-harmonic
Capital flow/large orders
longbridge-capital-flow
Institutional holdings/insiders
longbridge-flows

File layout

File layout

longbridge-smc/
└── SKILL.md
longbridge-smc/
└── SKILL.md