← 返回
未分类 Key 中文

market-breadth-analyzer

Measure US equity market breadth using advance/decline lines, percentage of stocks above moving averages, and new highs/lows via the Finskills API.
使用Finskills API,通过涨跌线、移动均线上方股票占比以及新高/新低来衡量美国股市广度。
finskills finskills 来源
未分类 clawhub v1.0.2 1 版本 100000 Key: 需要
★ 0
Stars
📥 374
下载
💾 0
安装
1
版本
#latest

概述

Market Breadth Analyzer

Assess internal market health and regime using breadth indicators from the

Finskills API: advance/decline data, percentage of stocks above key moving

averages, new highs vs. new lows, and short volume. Identify divergences

between index price action and underlying breadth — the most reliable early

warning system for market tops and bottoms.


Setup

API Key requiredRegister at https://finskills.net to get your free key.

Header: X-API-Key:

> Get your API key: Register at https://finskills.net — free tier available, Pro plan unlocks real-time quotes, history, and financials.


When to Activate This Skill

Activate when the user:

  • Asks "is this rally broad-based or narrow?"
  • Wants to assess whether the market is healthy or deteriorating
  • Asks about advance/decline ratio, new highs/lows, or breadth divergence
  • Wants to understand if it's a good environment to be fully invested
  • Asks "are we in a bull or bear market internally?"

Data Retrieval — Finskills API Calls

1. Market Breadth Indicators

GET https://finskills.net/v1/free/market/breadth

Extract:

  • advancers: number of stocks advancing
  • decliners: number of stocks declining
  • unchanged: number of stocks flat
  • new52wHigh: stocks hitting 52-week highs
  • new52wLow: stocks hitting 52-week lows
  • pctAbove200MA: % of S&P 500 stocks trading above 200-day MA
  • pctAbove50MA: % of S&P 500 stocks trading above 50-day MA
  • advanceVolume: volume in advancing stocks
  • declineVolume: volume in declining stocks

2. Market Summary (Index Price Context)

GET https://finskills.net/v1/market/summary

Extract: S&P 500 and Nasdaq current level, daily change, YTD performance

3. Short Volume (Market Stress Signal)

GET https://finskills.net/v1/free/market/short-volume-top

Extract: list of most heavily shorted stocks today (ratio of short vol to total vol)


Analysis Workflow

Step 1 — Advance/Decline Analysis

Advance/Decline Ratio (ADR):

ADR = advancers / decliners
ADRSignal
-------------
> 3.0Strong breadth — broad rally
1.5–3.0Good breadth — healthy market
0.75–1.5Mixed breadth — selective market
0.25–0.75Weak breadth — narrow or declining market
< 0.25Very weak breadth — broad selloff

Volume-Weighted A/D:

Volume A/D = advanceVolume / declineVolume

If Volume ADR > ADR: Distribution (smart money selling into rally) — bearish signal

If Volume ADR < ADR: Accumulation (buying on pullbacks) — bullish signal

Net New Highs/Lows:

Net New Highs = new52wHigh - new52wLow
  • Positive and growing: Strong bull market confirmation
  • Negative while index is rising: Breadth divergence ⚠️ (early warning signal)
  • Accelerating lows: Risk-off, potential broad decline

Step 2 — Moving Average Participation

Classify market health by % of stocks above key moving averages:

% Stocks Above 200-Day MA:

LevelMarket Health
---------------------
> 70%Bull market — broad participation
50–70%Moderate — mixed conditions
30–50%Weakening — selective market
< 30%Bear market conditions

% Stocks Above 50-Day MA:

  • Leading indicator (shorter-term): signals shifts 2–4 weeks before 200MA
  • When 50MA% drops below 40% while 200MA% still > 60%: caution flag ⚠️

Step 3 — Breadth Divergence Detection

Bullish Divergence (oversold bounce setup):

  • Index near 52-week lows
  • But % stocks above 200MA is rising
  • ADR improving

→ Signal: Internal strength building before price recovers

Bearish Divergence (distribution signal):

  • Index near 52-week highs
  • But % stocks above 200MA is falling
  • New highs count shrinking (fewer stocks making highs)
  • Net new lows expanding

→ Signal: Market becoming a narrow rally — top risk elevated

Participation Narrowing:

Calculate the ratio:

Narrowness Index = (leaders outperforming SPY with > 5% weight) / total S&P 500 constituents

If < 10 stocks are driving most of the index return, flag as "narrow rally" with high reversal risk.

Step 4 — Short Volume Stress Signals

Top heavily-shorted stocks signal areas of market stress:

  • If heavily shorted stocks are in key sectors: sector under significant bearish pressure
  • High short ratio on recent IPOs or hyper-growth names: speculative froth reducing
  • Short squeeze potential: stocks with high short ratio + positive news catalyst = snapback risk

Step 5 — Overall Market Health Score

Score each dimension and compute composite:

DimensionScore (1–5)
-----------------------
ADR (daily)5=very strong, 1=very weak
NetNewHighs5=expanding, 1=contracting
% > 200MA5= > 70%, 1= < 30%
% > 50MA5= > 65%, 1= < 35%
Vol. A/D Confirm5=confirmed, 3=neutral, 1=diverging

Market Health Score = avg of 5 dimensions (scale 1–5)

  • 4–5: Healthy bull market — stay invested
  • 3–4: Moderate — selective stock picking
  • 2–3: Weakening — raise cash, reduce risk
  • 1–2: Unhealthy — defensive positioning

Output Format

╔══════════════════════════════════════════════════════╗
║    MARKET BREADTH REPORT  —  {DATE}                 ║
╚══════════════════════════════════════════════════════╝

📊 MARKET INDEXES
  S&P 500:  {level}  {change}%  YTD: {ytd}%
  Nasdaq:   {level}  {change}%  YTD: {ytd}%
  Russell:  {level}  {change}%  YTD: {ytd}%

🩺 MARKET HEALTH SCORE: {X}/5  →  {HEALTHY / MODERATE / WEAKENING / UNHEALTHY}

📈 BREADTH DASHBOARD
  Advancers / Decliners:  {adv} / {dec}  (ADR: {ratio} — {Strong/Weak/Mixed})
  Volume Split:           {adv_vol}B advancing / {dec_vol}B declining
  Volume A/D Ratio:       {ratio} [{Accumulation/Distribution}]

  New 52-Week Highs:  {n}
  New 52-Week Lows:   {n}
  Net New Highs:      {+/-n}  [{Expanding/Contracting}]

  % Stocks > 200-Day MA: {%}  [{Bull/Moderate/Bear} zone]
  % Stocks > 50-Day MA:  {%}

🔍 DIVERGENCE CHECK
  Price vs. Breadth: {No divergence / BULLISH divergence / BEARISH divergence ⚠️}
  Detail: {Brief explanation of any divergence}
  Narrowing Rally Check: {Broad / Narrowing ⚠️}

📊 SHORT INTEREST SIGNALS
  Top Heavily Shorted Stocks Today:
    {TICKER}: {short_ratio}% short volume
    {TICKER}: {short_ratio}% short volume
  Signal: {Normal / Elevated stress in {sector}}

🎯 MARKET HEALTH ASSESSMENT
  Overall Verdict: {Healthy Bull / Mixed / Weakening / Risk-Off}

  Implication for Investors:
    ✅ {What to do if healthy}  OR
    ⚠️ {What to watch / reduce if weakening}

  Key indicator to monitor: {The metric most likely to confirm direction}

Limitations

  • Breadth indicators work best over 5–20 day windows; single-day readings can be noisy.
  • % above MA data depends on the data provider's stock universe (may cover S&P 500 constituents only).
  • Short volume data from the prior trading day (T+1 reporting lag for official FINRA data).

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-05-07 14:57 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

professional

All-Market Financial Data Hub

financial-ai-analyst
基于东方财富数据库,支持自然语言查询金融数据,覆盖A股、港股、美股、基金、债券等资产,提供实时行情、公司信息、估值、财务报表等,适用于投资研究、交易复盘、市场监控、行业分析、信用研究、财报审计、资产配置等场景,满足机构与个人需求。返回结果为
★ 127 📥 42,070
professional

Stock Market Pro

kys42
Yahoo Finance (yfinance) 驱动的股票分析技能:行情报价、基本面、ASCII 趋势图、高分辨率图表(RSI/MACD/BB/VWAP/ATR),以及可选的网络...
★ 163 📥 40,172
professional

Stock Analysis

udiedrichsen
{"answer":"基于雅虎财经数据,分析股票与加密货币。支持投资组合管理、自选股预警、股息分析、8维评分、热门趋势扫描及传闻/早期信号探测。适用于股票分析、持仓追踪、财报异动、加密监控、热门股追踪或提前发掘非主流传闻。"}
★ 278 📥 57,699