longbridge-graham-screener
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineselongbridge-graham-screener
Longbridge格雷厄姆烟蒂股批量筛选器
Prompt-only batch screener. Given a market or index universe, applies Graham's six hard filters (NCAV, PE, PB, dividend yield, debt coverage, earnings stability), scores each name on a 100-point static + dynamic composite, and returns a ranked cigar-butt candidate list with Graham buy lines, holding-period expectation, and value-trap warnings.
Response language: match the user's input language — Simplified Chinese / Traditional Chinese / English.
仅基于提示词的批量筛选器。针对指定市场或指数标的池,应用格雷厄姆的六项严格筛选规则(NCAV、PE、PB、股息率、偿债能力、盈利稳定性),以100分制的静态+动态综合指标对每个标的评分,返回包含格雷厄姆买入价、持有周期预期及价值陷阱预警的烟蒂股候选榜单。
回复语言:匹配用户输入语言——简体中文 / 繁体中文 / 英文。
When to use
使用场景
- "港股里现在有没有 NCAV<1 的股票" / "港股裡現在有沒有 NCAV<1 的股票" / "any HK stocks with NCAV < 1"
- "给我 A 股 PE 最低的 20 只股票,格雷厄姆标准" / "給我 A 股 PE 最低的 20 隻股票,格雷厄姆標準" / "top 20 lowest-PE A-shares by Graham standard"
- "帮我筛一下符合格雷厄姆防御型投资者条件的美股" / "幫我篩一下符合格雷厄姆防禦型投資者條件的美股" / "screen US stocks meeting Graham defensive-investor rules"
- "沪深300里的烟蒂股" / "滬深300裡的煙蒂股" / "cigar-butt names in CSI 300"
- "每周更新港股 NCAV 排行榜" / "每週更新港股 NCAV 排行榜" / "weekly HK NCAV leaderboard"
For single-stock deep diagnostic use . For broader low-PE / low-PB / high-ROE value (not NCAV-centric) use . For high-dividend-only screens use .
longbridge-graham-stock-analysislongbridge-value-screenlongbridge-dividend-screen- "港股里现在有没有 NCAV<1 的股票" / "港股裡現在有沒有 NCAV<1 的股票" / "any HK stocks with NCAV < 1"
- "给我 A 股 PE 最低的 20 只股票,格雷厄姆标准" / "給我 A 股 PE 最低的 20 隻股票,格雷厄姆標準" / "top 20 lowest-PE A-shares by Graham standard"
- "帮我筛一下符合格雷厄姆防御型投资者条件的美股" / "幫我篩一下符合格雷厄姆防禦型投資者條件的美股" / "screen US stocks meeting Graham defensive-investor rules"
- "沪深300里的烟蒂股" / "滬深300裡的煙蒂股" / "cigar-butt names in CSI 300"
- "每周更新港股 NCAV 排行榜" / "每週更新港股 NCAV 排行榜" / "weekly HK NCAV leaderboard"
如需单股深度诊断,请使用 。如需更广泛的低PE/低PB/高ROE价值股筛选(非NCAV核心),请使用 。如需仅高股息筛选,请使用 。
longbridge-graham-stock-analysislongbridge-value-screenlongbridge-dividend-screenCognitive frame (do not skip)
认知框架(请勿跳过)
Graham screening is patient arbitrage, not a dip-buy signal. Hold periods: 6–18 months (explicit catalyst), 1–3 years (sector re-rating), 3–5 years (organic accrual), or never (value trap — exit). Every ranking output must carry the waiting-cost (dividend yield) and the holding-period framing; never display a score number on its own.
Two failure modes the user must be able to distinguish — and the screener must signal:
- "Cheap but time hasn't come" → NCAV stable QoQ, keep on the list.
- "Value trap" → NCAV shrinking ≥3 quarters, persistent insider selling, negative OCF, PMI persistently <50, AR growth outpacing revenue. Override to ⚠️ regardless of static score.
格雷厄姆筛选是耐心套利,而非抄底信号。持有周期:6–18个月(明确催化剂)、1–3年(行业重估)、3–5年(自然增值),或永不持有(价值陷阱——卖出)。所有排名输出必须包含等待成本(股息率)及持有周期说明;不得单独展示评分数字。
用户必须能够区分两种失败模式,筛选器必须发出信号:
- 「价格低廉但时机未到」 → NCAV季度环比稳定,保留在榜单中。
- 「价值陷阱」 → NCAV连续≥3个季度缩水、持续内部人抛售、经营现金流为负、PMI持续<50、应收账款增长超过营收增长。无论静态评分如何,均标记为⚠️。
Workflow
工作流程
- Confirm market + universe. Ask the user for: (a) market — HK / US / A-share, (b) screening pool — single index (HSI, S&P 500, CSI 300, NDX, etc.) or a watchlist. Default batch ceiling: 300 names per run.
- Fetch constituent list for the chosen index (or watchlist) — see §CLI.
- Sector pre-classification: exclude banks / insurance / REITs / pure financials / negative-equity / pure-holding shells from the universe before scoring — NCAV does not apply to balance sheets dominated by financial assets, so these are removed, not run through a substitute model. Count the exclusion in the Market Summary "Excluded — NCAV inapplicable" line. Separately, flag IPOs < 2 years (pro-rata earnings-stability sub-score, noted in row) and suspended names (last-trade snapshot, prepend ⏸).
- Batch-fetch fundamentals in parallel (≤20 symbols per wave): balance sheet (annual + last 4Q), income statement (5y annual + 4Q quarterly), cash flow (4Q quarterly), +
calc-indexsnapshot,quote,dividend.ownership - Apply hard filters with user-overridable thresholds — see §Filters.
- Score each candidate — static (0–100) + dynamic adjustments + value-trap override. See .
references/criteria.md - Reconciliation gate per row: if balance-sheet sum / current-assets sum / shares×price mismatches the reported total by >3%, drop the row from the leaderboard with a "data anomaly" note (do not silently average).
- Rank by adjusted score (descending); default top 10–20 returned. Emit the table + market summary + waiting-cost note + suggested next step.
- Append a Data Source Appendix (mandatory) listing every Longbridge endpoint hit, every WebSearch hit (publisher + URL + access date), fetch timestamps, and any field substitutions.
- End every output with the recommendation: «本筛选器仅静态硬指标 + 通用动态因子,未考虑公司层面主观估值陷阱。命中候选请用 做单股深度诊断。»
longbridge-graham-stock-analysis
- 确认市场+标的池。向用户确认:(a) 市场——港股/美股/A股,(b) 筛选池——单一指数(如恒生指数HSI、标普500 S&P 500、沪深300 CSI 300、纳斯达克100 NDX等)或自选股列表。默认单次运行上限:300个标的。
- 获取所选指数(或自选股)的成分股列表——参见§CLI。
- 行业预分类:在评分前排除银行/保险/REITs/纯金融类/负权益/纯控股壳公司——NCAV不适用于以金融资产为主的资产负债表,因此这些标的将被移除,不使用替代模型运行。在市场摘要的「排除——NCAV不适用」项中统计排除数量。另外,标记上市不足2年的IPO(盈利稳定性子评分按可用年份折算,在行中注明)及停牌标的(最新交易快照,前缀添加⏸)。
- 并行批量获取基本面数据(每批≤20个标的):资产负债表(年度+最近4季度)、利润表(5年年度+4季度季度数据)、现金流量表(4季度季度数据)、+
calc-index快照、quote、dividend。ownership - 应用严格筛选规则,阈值可由用户覆盖——参见§筛选规则。
- 为每个候选标的评分——静态评分(0–100)+动态调整+价值陷阱覆盖。详见。
references/criteria.md - 逐行核对校验:若资产负债表总和/流动资产总和/股价×股份数与报告总额差异超过3%,则将该行从榜单中移除,并标注「数据异常」说明(不得默默取平均值)。
- 按调整后评分降序排名;默认返回前10–20个标的。输出表格+市场摘要+等待成本说明+下一步建议。
- 添加数据源附录(必填),列出所有调用的Longbridge接口、所有WebSearch结果(发布商+URL+访问日期)、获取时间戳及任何字段替换情况。
- 所有输出结尾必须包含推荐语:«本筛选器仅基于静态硬指标+通用动态因子,未考虑公司层面主观估值陷阱。命中候选请用 做单股深度诊断。»
longbridge-graham-stock-analysis
CLI
CLI
Run to verify exact flags before each call — the CLI is the source of truth, do not hard-code flag spellings from memory.
longbridge <subcommand> --helpbash
undefined每次调用前运行 验证准确参数——CLI为权威来源,请勿凭记忆硬编码参数拼写。
longbridge <subcommand> --helpbash
undefinedUniverse
标的池
longbridge constituent <INDEX> --format json # e.g. 000300.SH, HSI.HK, SPX.US
longbridge constituent <INDEX> --format json # 示例:000300.SH, HSI.HK, SPX.US
Per-symbol snapshot (run in parallel, batches of ≤20)
单标的快照(并行运行,每批≤20个)
longbridge calc-index <SYMBOL> --format json # PE / PB / market cap / ROE / dividend yield
longbridge quote <SYMBOL> --format json # current price + suspended flag
longbridge dividend <SYMBOL> --format json # TTM dividend (waiting-cost)
longbridge calc-index <SYMBOL> --format json # PE / PB / 市值 / ROE / 股息率
longbridge quote <SYMBOL> --format json # 当前价格 + 停牌标记
longbridge dividend <SYMBOL> --format json # TTM股息(等待成本)
Per-symbol fundamentals (run in parallel)
单标的基本面数据(并行运行)
longbridge financial-report <SYMBOL> --kind BS --report af --format json # 5y annual BS → NCAV
longbridge financial-statement <SYMBOL> --kind BS --report qf --format json # last 4Q BS → NCAV trajectory
longbridge financial-report <SYMBOL> --kind IS --report af --format json # 5y annual IS → earnings stability
longbridge financial-report <SYMBOL> --kind CF --report qf --format json # 4Q CF → OCF rule
longbridge financial-report <SYMBOL> --kind BS --report af --format json # 5年年度资产负债表 → NCAV计算
longbridge financial-statement <SYMBOL> --kind BS --report qf --format json # 最近4季度资产负债表 → NCAV趋势
longbridge financial-report <SYMBOL> --kind IS --report af --format json # 5年年度利润表 → 盈利稳定性
longbridge financial-report <SYMBOL> --kind CF --report qf --format json # 4季度现金流量表 → 经营现金流规则
Insider / institutional flow (value-trap rule 2)
内部人/机构资金流向(价值陷阱规则2)
longbridge ownership <SYMBOL> --format json
longbridge insresearch <SYMBOL> --format json
undefinedlongbridge ownership <SYMBOL> --format json
longbridge insresearch <SYMBOL> --format json
undefinedWebSearch fallback (use only when Longbridge has the gap)
WebSearch fallback(仅当Longbridge存在数据缺口时使用)
| Missing input | WebSearch query pattern |
|---|---|
| Industry PMI / inventory cycle | |
| Capacity utilisation | |
| Sector outlook (qualitative) | |
Recent insider transactions (if | |
Each WebSearch-sourced figure must be tagged with publisher + URL + access date in the Data Source Appendix; never silently mix it into a Longbridge column.
| 缺失输入 | WebSearch查询模式 |
|---|---|
| 行业PMI/库存周期 | |
| 产能利用率 | |
| 行业展望(定性) | |
近期内部人交易(若 | |
每个WebSearch来源的数据必须在数据源附录中标注发布商+URL+访问日期;不得直接混入Longbridge数据列中。
Filters
筛选规则
User-overridable. Defaults from Graham's Intelligent Investor with light modernisation; threshold detail and the composite scoring weights live in .
references/criteria.md| Filter | Graham threshold | Notes |
|---|---|---|
| NCAV ratio (market cap ÷ haircut NCAV) | < 1.0 ideal, < 1.5 acceptable | Core. Haircut: cash 100% / AR 75% / inventory 50% / other CA 25% / liabilities 100% |
| PE (TTM) | < 10 (defensive) | Rolling TTM |
| PB | < 1.5 | — |
| Dividend yield (TTM) | > 3% | Waiting-cost compensation |
| Current assets ÷ total liabilities | > 2.0 | Debt safety |
| Consecutive no-loss years | ≥ 5 | Earnings stability |
| Dynamic warning state | none triggered | Optional pre-filter; defaults to "show but flag" |
Default rank key = adjusted cigar-butt score (static composite + dynamic adjustments + value-trap override). The user can override the rank key to: static-only, NCAV ratio asc, PE asc, dividend yield desc.
可由用户覆盖阈值。默认值基于格雷厄姆《聪明的投资者》并结合现代市场轻微调整;阈值细节及综合评分权重详见。
references/criteria.md| 筛选规则 | 格雷厄姆阈值 | 说明 |
|---|---|---|
| NCAV比率(市值÷调整后NCAV) | 理想值<1.0,可接受值<1.5 | 核心规则。调整方式:现金100%/应收账款75%/存货50%/其他流动资产25%/负债100% |
| PE(TTM) | <10(防御型) | 滚动TTM数据 |
| PB | <1.5 | — |
| 股息率(TTM) | >3% | 等待成本补偿 |
| 流动资产÷总负债 | >2.0 | 偿债安全 |
| 连续无亏损年份 | ≥5 | 盈利稳定性 |
| 动态预警状态 | 无触发 | 可选预筛选;默认「展示但标记」 |
默认排名依据=调整后烟蒂股评分(静态综合评分+动态调整+价值陷阱覆盖)。用户可覆盖排名依据为:仅静态评分、NCAV比率升序、PE升序、股息率降序。
Special handling
特殊处理
| Cohort | Treatment |
|---|---|
| Banks / insurance / REITs / pure financials / negative-equity / pure-holding shells | Excluded — NCAV is not a valid valuation lens for these business models. No substitute model is run; the symbols are dropped from the universe before scoring and counted in the Market Summary "Excluded — NCAV inapplicable" line. If the user wants these analysed, point them to |
| IPOs listed < 2 years | Earnings-stability sub-score pro-rated on available years. Mark row "数据局限". |
| Suspended stocks | Show last-trade snapshot, prepend "⏸ 停牌" / "⏸ Suspended" to the name, exclude from default top-N (still listable on request). |
| Reconciliation fail >3% | Drop from leaderboard; surface in a "数据异常待复核" footer list with the failing check named. |
| 标的组 | 处理方式 |
|---|---|
| 银行/保险/REITs/纯金融类/负权益/纯控股壳公司 | 排除——NCAV对这些商业模式并非有效估值指标。不运行替代模型;这些标的在评分前从标的池中移除,并在市场摘要的「排除——NCAV不适用」项中统计。若用户希望分析此类标的,请引导至 |
| 上市不足2年的IPO | 盈利稳定性子评分按可用年份折算。在行中标记「数据局限」。 |
| 停牌股票 | 展示最新交易快照,在名称前添加「⏸ 停牌」/「⏸ Suspended」,默认不纳入前N榜单(可按需列出)。 |
| 核对差异>3% | 从榜单中剔除,并在「数据异常待复核」页脚列表中列出失败项及差异。 |
Output
输出
Default leaderboard (top 10–20 rows). Full template, market-summary block, waiting-cost line, subscription hook, and the mandatory Data Source Appendix structure live in .
references/output.mdMinimum columns:
排名 代码 名称 静态评分 调整后评分 NCAV比率 PE PB 股息率 Graham买入价 动态预警 数据局限After the table, every output must include:
- Market summary — universe size, hard-filter pass count, dynamic-clean count.
- Waiting-cost line — average dividend yield of the top-N; the «持有等待期间每年可获约 X% 股息回报作为补偿» line.
- Next-step recommendation — point users to for any name they want to act on (筛选器未考虑主观估值陷阱因素).
longbridge-graham-stock-analysis - Data Source Appendix — mandatory; every field, every Longbridge endpoint, every WebSearch hit (publisher + URL + date).
- Disclaimer — full trilingual disclaimer from .
references/output.md
默认榜单(前10–20行)。完整模板、市场摘要块、等待成本说明、订阅钩子及必填数据源附录结构详见。
references/output.md最小列数:
排名 代码 名称 静态评分 调整后评分 NCAV比率 PE PB 股息率 Graham买入价 动态预警 数据局限表格之后,所有输出必须包含:
- 市场摘要——标的池规模、通过严格筛选的数量、通过动态校验的数量。
- 等待成本说明——前N标的的平均股息率;«持有等待期间每年可获约X%股息回报作为补偿»。
- 下一步建议——引导用户对任何拟操作的标的使用(筛选器未考虑主观估值陷阱因素)。
longbridge-graham-stock-analysis - 数据源附录——必填;每个字段、每个Longbridge接口、每个WebSearch结果(发布商+URL+日期)。
- 免责声明——来自的完整三语免责声明。
references/output.md
Error handling
错误处理
| Situation | 简体回复 | 繁體回覆 | English reply |
|---|---|---|---|
| 回退到 MCP;若不可用,请安装 longbridge-terminal。 | 回退到 MCP;若不可用,請安裝 longbridge-terminal。 | Fall back to MCP; if unavailable install longbridge-terminal. |
stderr | 请运行 | 請執行 | Run |
| 未能获取成分股,请确认指数代码(如 000300.SH / HSI.HK / SPX.US)。 | 未能獲取成分股,請確認指數代碼(如 000300.SH / HSI.HK / SPX.US)。 | Cannot fetch constituents; verify index symbol (e.g. 000300.SH / HSI.HK / SPX.US). |
| BS / IS / CF partial fetch for a symbol | 该标的数据不完整,跳过并在「数据异常」脚注列出。 | 該標的數據不完整,跳過並於「數據異常」腳註列出。 | Symbol has incomplete fundamentals; skipped and listed in the data-anomaly footer. |
| Industry-cycle data missing (Longbridge + WebSearch both empty) | 仅展示静态评分,动态层标注「数据不足」。 | 僅展示靜態評分,動態層標註「數據不足」。 | Static score only; dynamic layer marked "unavailable". |
| Per-row reconciliation gap >3% | 从榜单剔除并在「数据异常」附录列出失败项及差异。 | 自榜單剔除並於「數據異常」附錄列出失敗項及差異。 | Drop from leaderboard; list failing check + gap in data-anomaly appendix. |
| 场景 | 简体回复 | 繁體回覆 | English reply |
|---|---|---|---|
| 回退到MCP;若不可用,请安装longbridge-terminal。 | 回退到MCP;若不可用,請安裝longbridge-terminal。 | Fall back to MCP; if unavailable install longbridge-terminal. |
stderr返回 | 请运行 | 請執行 | Run |
| 未能获取成分股,请确认指数代码(如000300.SH / HSI.HK / SPX.US)。 | 未能獲取成分股,請確認指數代碼(如000300.SH / HSI.HK / SPX.US)。 | Cannot fetch constituents; verify index symbol (e.g. 000300.SH / HSI.HK / SPX.US). |
| 某标的BS/IS/CF数据部分获取失败 | 该标的数据不完整,跳过并在「数据异常」脚注列出。 | 該標的數據不完整,跳過並於「數據異常」腳註列出。 | Symbol has incomplete fundamentals; skipped and listed in the data-anomaly footer. |
| 行业周期数据缺失(Longbridge+WebSearch均无数据) | 仅展示静态评分,动态层标注「数据不足」。 | 僅展示靜態評分,動態層標註「數據不足」。 | Static score only; dynamic layer marked "unavailable". |
| 逐行核对差异>3% | 从榜单剔除并在「数据异常」附录列出失败项及差异。 | 自榜單剔除並於「數據異常」附錄列出失敗項及差異。 | Drop from leaderboard; list failing check + gap in data-anomaly appendix. |
MCP fallback
MCP fallback
If CLI is not installed, use MCP tools:
longbridge| MCP tool | CLI equivalent |
|---|---|
| |
| |
| |
| |
| |
| |
| |
| |
MCP setup: ( scope).
claude mcp add --transport http longbridge https://openapi.longbridge.com/mcpquote若未安装CLI,使用MCP工具:
longbridge| MCP工具 | CLI等效命令 |
|---|---|
| |
| |
| |
| |
| |
| |
| |
| |
MCP设置:(需权限)。
claude mcp add --transport http longbridge https://openapi.longbridge.com/mcpquoteRelated skills
相关技能
- Single-stock Graham diagnostic →
longbridge-graham-stock-analysis - Broader value (PE / PB / ROE) screen →
longbridge-value-screen - High-dividend screen →
longbridge-dividend-screen - DCF intrinsic value →
longbridge-dcf - Method selection guide →
longbridge-valuation-methodology - Three-statement reading →
longbridge-financial-report
- 单股格雷厄姆诊断 →
longbridge-graham-stock-analysis - 广泛价值股(PE/PB/ROE)筛选 →
longbridge-value-screen - 高股息筛选 →
longbridge-dividend-screen - DCF内在价值计算 →
longbridge-dcf - 估值方法选择指南 →
longbridge-valuation-methodology - 三表解读 →
longbridge-financial-report
File layout
文件结构
longbridge-graham-screener/
├── SKILL.md
└── references/
├── criteria.md # filter thresholds, six-dimension static scoring, dynamic adjustments, value-trap override, NCAV-inapplicable exclusions
└── output.md # full leaderboard template, market-summary block, data-source appendix, disclaimerlongbridge-graham-screener/
├── SKILL.md
└── references/
├── criteria.md # 筛选阈值、六维度静态评分、动态调整、价值陷阱覆盖规则、NCAV不适用排除项
└── output.md # 完整榜单模板、市场摘要块、数据源附录、免责声明