Assess the health of the Indian stock market using advance/decline and sector data.

Install

mkdir -p .claude/skills/india-market-breadth && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/16380" && unzip -o skill.zip -d .claude/skills/india-market-breadth && rm skill.zip

Installs to .claude/skills/india-market-breadth

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Analyze Indian market breadth health using advance/decline data, stocks above moving averages, new highs/lows, and sector participation. Use when assessing rally quality, market participation width, or equity exposure levels for NSE/BSE.
237 chars✓ has a “when” trigger
Advanced

Key capabilities

  • Analyze Indian market breadth using advance/decline data
  • Assess the percentage of stocks above moving averages (200 DMA, 50 DMA)
  • Count new 52-week highs versus lows
  • Score market breadth health on a 0-100 composite scale
  • Identify Nifty divergence from breadth indicators

How it works

The skill analyzes Indian market breadth by collecting data on advance/decline counts, stocks above moving averages, and new highs/lows from sources like the NSE website and Groww MCP. It then calculates various breadth indicators and a composite score.

Inputs & outputs

You give it
A request to analyze Indian market breadth or assess equity exposure for NSE/BSE
You get back
A market breadth health score, interpretation of indicators, and equity exposure recommendations

When to use india-market-breadth

  • Assessing rally quality
  • Checking sector participation
  • Equity exposure assessment

About this skill

India Market Breadth Analyzer

Purpose

Market breadth measures how broadly a rally or decline is distributed across the market. A healthy market has broad participation — many stocks and sectors moving in the same direction. A narrow market, where only a few large-cap stocks are driving the index, is fragile and prone to reversal.

This skill provides a systematic framework to assess NSE/BSE breadth health, score it on a 0-100 composite scale, and translate it into actionable equity exposure recommendations.


Data Sources

Primary Sources

Data PointSourceMethod
Advance/Decline countsNSE website / Web searchWebSearch for "NSE advance decline data today"
Stocks above 200 DMAMarket screeners / Web searchWebSearch for "stocks above 200 DMA NSE"
Stocks above 50 DMAMarket screeners / Web searchWebSearch for "stocks above 50 DMA NSE"
New 52-week highsGroww MCPfetch_market_movers_and_trending_stocks_funds with YEARLY_HIGH filter
New 52-week lowsGroww MCPfetch_market_movers_and_trending_stocks_funds with YEARLY_LOW filter
Sector performanceGroww MCPget_ltp for sector indices (Nifty IT, Bank Nifty, Nifty Pharma, etc.)
Nifty 50 levelGroww MCPget_ltp for NIFTY
Top gainers/losersGroww MCPfetch_market_movers_and_trending_stocks_funds with TOP_GAINERS / TOP_LOSERS

Broker MCP Tools Used

Use whichever broker MCP is connected (Groww or Zerodha Kite):

Groww MCP (if connected):

  1. fetch_market_movers_and_trending_stocks_funds — Core tool for yearly highs/lows counts, top gainers/losers, volume data
  2. get_ltp — Get live prices for Nifty, Bank Nifty, sector indices
  3. fetch_historical_candle_data — Historical data for trend analysis
  4. get_historical_technical_indicators — Calculate moving averages for breadth assessment
  5. fetch_technical_screener — Screen for stocks by technical criteria (RSI, MACD, etc.)
  6. fetch_fundamentals_screener — Natural language screening for market-cap based analysis

Zerodha Kite MCP (if connected):

  1. get_ltp — Live prices for Nifty, Bank Nifty, sector indices
  2. get_quotes — Real-time quotes with market depth
  3. get_ohlc — OHLC data for indices and stocks
  4. get_historical_data — Historical candle data for trend analysis
  5. search_instruments — Search for instruments by name

Workflow

Step 1: Fetch NSE Advance/Decline Data

Use web search to get NSE advance/decline data:

WebSearch: "NSE advance decline ratio today"
WebSearch: "NSE market breadth today advances declines"

Key data points needed:

  • Number of advances (stocks that closed higher)
  • Number of declines (stocks that closed lower)
  • Number of unchanged
  • Total traded stocks

Step 2: Calculate Breadth Indicators

A/D Ratio

A/D Ratio = Number of Advances / Number of Declines

Interpretation:
  > 2.0:  Strong breadth (broad rally)
  1.5-2.0: Healthy breadth
  1.0-1.5: Neutral
  0.7-1.0: Weak breadth
  < 0.7:  Very weak (broad selling)

A/D Line (Cumulative)

A/D Line = Previous A/D Line + (Advances - Declines)

Rising A/D Line + Rising Nifty = Confirmed uptrend
Falling A/D Line + Rising Nifty = DIVERGENCE (warning)
Rising A/D Line + Falling Nifty = Accumulation (bullish)
Falling A/D Line + Falling Nifty = Confirmed downtrend

McClellan Oscillator Concept

A/D Difference = Advances - Declines
19-day EMA of A/D Difference (fast)
39-day EMA of A/D Difference (slow)
McClellan Oscillator = 19-day EMA - 39-day EMA

> 0:  Bullish breadth momentum
< 0:  Bearish breadth momentum
> +50: Overbought breadth
< -50: Oversold breadth

Step 3: Assess % of Stocks Above 200 DMA and 50 DMA

Use web search or screener tools:

WebSearch: "percentage of NSE stocks above 200 day moving average"

Or use Groww MCP technical screener to estimate:

fetch_technical_screener with various SMA/EMA filters

Key Thresholds

MetricBullishNeutralBearish
% above 200 DMA> 60%40-60%< 40%
% above 50 DMA> 55%35-55%< 35%
% above 20 DMA> 50%30-50%< 30%

Step 4: Count New 52-Week Highs vs Lows (via Groww MCP)

Use Groww MCP tools:

# Fetch stocks hitting yearly highs
fetch_market_movers_and_trending_stocks_funds(
    discovery_filter_types=["YEARLY_HIGH"],
    size=20
)

# Fetch stocks hitting yearly lows
fetch_market_movers_and_trending_stocks_funds(
    discovery_filter_types=["YEARLY_LOW"],
    size=20
)

Interpretation

Highs:Lows RatioSignal
> 5:1Strong bullish breadth
2:1 to 5:1Healthy bullish breadth
1:1 to 2:1Neutral / transitioning
0.5:1 to 1:1Bearish breadth
< 0.5:1Strong bearish breadth

Step 5: Score Breadth Health (0-100 Composite)

The composite score is calculated from 5 components:

#ComponentWeightMax PointsSource
1Advance/Decline Ratio25%25NSE A/D data
2Stocks Above 200 DMA25%25Screener data
3New Highs vs Lows20%20Groww MCP YEARLY_HIGH/LOW
4Sector Participation15%15Sector index performance
5Nifty Divergence15%15Nifty vs breadth comparison

Component 1: Advance/Decline Ratio Score (0-25)

A/D RatioScore
> 3.025
2.5 - 3.022-25
2.0 - 2.519-22
1.5 - 2.015-19
1.2 - 1.512-15
1.0 - 1.28-12
0.7 - 1.04-8
0.5 - 0.72-4
< 0.50-2

Also consider the 5-day and 20-day trend of A/D ratio:

  • Improving trend: +2 bonus points
  • Deteriorating trend: -2 penalty points

Component 2: Stocks Above 200 DMA Score (0-25)

% Above 200 DMAScore
> 75%25
65-75%21-25
55-65%17-21
45-55%13-17
35-45%9-13
25-35%5-9
< 25%0-5

Component 3: New Highs vs Lows Score (0-20)

Highs:Lows RatioScore
> 5:120
3:1 - 5:116-20
2:1 - 3:112-16
1:1 - 2:18-12
0.5:1 - 1:14-8
< 0.5:10-4

Component 4: Sector Participation Score (0-15)

Count how many of the 13 major Nifty sectors are in an uptrend (above their 50 DMA or showing positive 1-month return):

13 Key NSE Sectors:

  1. Nifty Bank
  2. Nifty IT
  3. Nifty Pharma
  4. Nifty FMCG
  5. Nifty Auto
  6. Nifty Metal
  7. Nifty Realty
  8. Nifty Energy
  9. Nifty Infrastructure
  10. Nifty PSU Bank
  11. Nifty Private Bank
  12. Nifty Media
  13. Nifty Financial Services
Sectors in UptrendScore
11-1315
9-1012-14
7-89-11
5-66-8
3-43-5
0-20-2

Component 5: Nifty Divergence Score (0-15)

This measures whether index performance aligns with underlying breadth.

ScenarioScore
Nifty rising + breadth improving15 (confirmed uptrend)
Nifty flat + breadth improving13 (stealth accumulation)
Nifty rising + breadth flat10 (narrow rally, watch closely)
Nifty flat + breadth flat8 (neutral, no signal)
Nifty flat + breadth declining5 (stealth distribution)
Nifty rising + breadth declining3 (BEARISH DIVERGENCE — high risk)
Nifty falling + breadth declining2 (confirmed downtrend)
Nifty falling + breadth improving7 (possible bottom formation)

Step 6: Map to Equity Exposure Recommendation

Health Zones

Score RangeZoneEquity ExposureAction
80-100Strong90-100%Full equity allocation. Market has broad participation. Deploy fresh capital.
60-79Healthy75-90%Normal allocation. Monitor for deterioration. Favor broad-based positions.
40-59Neutral60-75%Cautious allocation. Focus on strong sectors only. Reduce mid/small-cap exposure.
20-39Weakening40-60%Defensive allocation. Shift to large-caps and quality. Raise cash on rallies.
0-19Critical25-40%Maximum defense. High cash/debt allocation. Only hold strongest positions. Potential capitulation zone.

Exposure Adjustment Rules

  1. Score improving for 5+ days: Can increase exposure by one zone level
  2. Score deteriorating for 5+ days: Decrease exposure by one zone level
  3. Score drops >15 points in a week: Emergency review — consider reducing exposure immediately
  4. Score rises >15 points in a week: Wait for confirmation (3+ days) before increasing

Step 7: Generate Report

Use the template from assets/breadth_report_template.md to produce a structured report. Include:

  1. Composite score and health zone
  2. All 5 component scores with supporting data
  3. Trend direction (improving/deteriorating)
  4. Equity exposure recommendation
  5. Divergence analysis
  6. Historical context
  7. Disclaimer

Quick Reference: NSE Sector Indices

Use these symbols with get_ltp for sector breadth assessment:

SectorSymbolApprox Constituents
Bank NiftyNIFTY BANK12 banks
Nifty ITNIFTY IT10 IT companies
Nifty PharmaNIFTY PHARMA20 pharma companies
Nifty FMCGNIFTY FMCG15 FMCG companies
Nifty AutoNIFTY AUTO15 auto companies
Nifty MetalNIFTY METAL15 metal companies
Nifty RealtyNIFTY REALTY10 realty companies
Nifty EnergyNIFTY ENERGY10 energy companies
Nifty InfraNIFTY INFRA30 infra companies
Nifty PSU BankNIFTY PSU BANK12 PSU banks
Nifty Pvt BankNIFTY PVT BANK10 private banks
Nifty MediaNIFTY MEDIA14 media companies
Nifty Fin ServiceNIFTY FIN SERVICE20 financial companies

Example Breadth Assessment

Date: 2025-03-10

COMPONENT SCORES:


---

*Content truncated.*

When not to use it

  • When analyzing market breadth for non-Indian markets
  • When seeking real-time trading signals without broader market context
  • When F&O expiry effects or budget policies are distorting breadth readings

Limitations

  • The analysis is specific to Indian markets (NSE/BSE)
  • F&O Expiry Effects can distort breadth readings
  • Budget and RBI Policy Weeks create abnormal breadth swings

How it compares

This skill provides a systematic framework specifically for assessing NSE/BSE breadth health and translating it into actionable equity exposure recommendations, unlike general market analysis tools.

Compared to similar skills

india-market-breadth side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
india-market-breadth (this skill)05moNo flagsAdvanced
quant-analyst1033moNo flagsAdvanced
stock-analyzer712moReviewBeginner
creating-financial-models368moReviewAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

quant-analyst

zenobi-us

Expert quantitative analyst specializing in financial modeling, algorithmic trading, and risk analytics. Masters statistical methods, derivatives pricing, and high-frequency trading with focus on mathematical rigor, performance optimization, and profitable strategy development.

103355

stock-analyzer

FrancyJGLisboa

Provides comprehensive technical analysis for stocks and ETFs using RSI, MACD, Bollinger Bands, and other indicators. Activates when user requests stock analysis, technical indicators, trading signals, or market data for specific ticker symbols.

71214

creating-financial-models

anthropics

This skill provides an advanced financial modeling suite with DCF analysis, sensitivity testing, Monte Carlo simulations, and scenario planning for investment decisions

36161

reconciliation

anthropics

Reconcile accounts by comparing GL balances to subledgers, bank statements, or third-party data. Use when performing bank reconciliations, GL-to-subledger recs, intercompany reconciliations, or identifying and categorizing reconciling items.

30139

analyzing-financial-statements

anthropics

This skill calculates key financial ratios and metrics from financial statement data for investment analysis

32134

us-stock-analysis

tradermonty

Comprehensive US stock analysis including fundamental analysis (financial metrics, business quality, valuation), technical analysis (indicators, chart patterns, support/resistance), stock comparisons, and investment report generation. Use when user requests analysis of US stock tickers (e.g., "analyze AAPL", "compare TSLA vs NVDA", "give me a report on Microsoft"), evaluation of financial metrics, technical chart analysis, or investment recommendations for American stocks.

24137

Search skills

Search the agent skills registry