# nse stage rrg

> Rank NSE stocks by Weinstein stage and relative strength using free end-of-day exchange data.

nse stage rrg is a free AI agent skill on Agensi by Jaideep Ojha, in Trading & Investing. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Jaideep Ojha](https://www.agensi.io/creators/jaideep-ojha)
- Category: [Trading & Investing](https://www.agensi.io/skills/trading-investing)
- Version: 1.0
- Last updated: 2026-11-22
- Security: scan passed (2026-11-22); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/nse-stage-rrg
- Tags: trading, ai-agents, nse-india, technical-analysis, python, nse, nifty50, stockmarkets

## About this skill

Finding market leaders in the National Stock Exchange (NSE) of India usually requires expensive subscriptions or manual charting. This tool automates the heavy lifting by processing NSE public archives to rank the entire equity universe using Stan Weinstein's Stage Analysis and IBD-style Relative Strength.

### What it does
- **Stage Classification** identifies stocks in Basing (1), Advancing (2), Topping (3), or Declining (4) phases based on 30-week moving averages.
- **RS Rating** calculates 12-month weighted relative strength and assigns a percentile rank from 1 to 99 across ~2,400 stocks.
- **Sector Rotation** generates Relative Rotation Graphs (RRG) to categorize sectors into Leading, Improving, Weakening, or Lagging quadrants.
- **Liquidity Filtering** excludes low-volume micro-caps using a minimum daily turnover filter to focus on tradeable assets.
- **Stock Lookup** provides detailed technical snapshots including Mansfield RS, distance from 52-week highs, and breakout volume.

### How it works
1. **Cache Data** by running the `fetch` command to download and process NSE bhavcopy and index files for the last 300 trading days.
2. **Rank the Universe** using the `rank` command with optional flags for specific stages, minimum RS scores, or sectors.
3. **Analyze Sectors** with the `rrg` command to see where institutional money is rotating relative to the Nifty 500.

### Frameworks & tools
The skill is built with Python and utilizes standard data processing libraries. It interfaces directly with the NSE India public archives via local caching to avoid rate-limiting and account requirements.

### Why this beats prompting it yourself
Standard LLMs lack the real-time or historical pricing data required to calculate 52-week percentile rankings or 30-week moving average slopes. This tool bridges the gap by providing the agent with a local, high-fidelity technical database derived from raw exchange files.

### Use cases
- Identify Stage-2 breakout candidates with RS ratings above 80 and high turnover.
- Filter for the strongest stocks within a specific sector like Nifty IT or Auto.
- Monitor sector rotation to see which industries are gaining momentum vs the Nifty 500.
- Audit a specific symbol's current stage and relative strength trend.

### Known limitations
Does not support recent listings with less than 12 months of trading history. Calculations are descriptive of current trends and do not constitute financial advice.

## Requires

- Python

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the nse stage rrg skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How is this different from just asking an AI to analyze a stock for me?

Unlike general AI models, this skill uses a specialized technical engine to process raw NSE archives, calculating precise 30-week moving averages and percentile-based Relative Strength (RS) that LLMs cannot generate on their own.

### Do I need a paid subscription to an external data provider like Bloomberg or Reuters?

The skill relies on free, public NSE end-of-day data; no expensive data provider subscriptions or API keys are required to access the full ranking and RRG features.

### Can I use this tool to analyze newly listed stocks or recent IPOs?

The tool requires at least 12 months of trading history to calculate IBD-style RS ratings and stage slopes, so it will automatically exclude very recent IPOs and listings.

### How does the skill handle data updates and local storage?

The 'fetch' command downloads and caches approximately 300 days of historical data locally, ensuring fast analysis while preventing rate-limiting issues from the exchange archives.

### Does the ranking system filter out low-volume penny stocks or micro-caps?

Yes, the 'rank' command includes a liquidity filter that uses a minimum daily turnover threshold, ensuring you only see stocks that have enough volume for practical trading.

### What exactly is included in the purchase of this skill?

You receive the complete Python-based skill package, including the Weinstein stage classifier, the Relative Strength ranking engine, and the Sector RRG generator.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
