Relative Strength Ranker

Utility Tools Intermediate NIFTY 50 Stocks NIFTY 500 Stocks Sectoral Indices F&O Stocks Midcap Stocks Smallcap Stocks
Backtest Relative Strength Ranker on real market data — free
Simulate it in AlgoKing with zero real-money risk. No card required.
Start free →

Quick Reference

Purpose Systematically rank stocks based on relative price performance against benchmarks or peers to identify market leaders and laggards for momentum-based trading and sector rotation strategies
Optimal Conditions Trending markets where momentum strategies outperform, sector rotation phases, and periods of clear leadership differentiation
Risk Level Low (ranking tool) - Risk depends on how rankings are used for actual trading
Time Horizon Medium to long-term rankings (weekly/monthly rebalancing typical)
Capital Requirement No direct capital requirement for ranking; actual trading based on rankings requires appropriate capital
India Specific Note Rankings calibrated for NSE/BSE universe with sector classifications matching Indian market structure and F&O stock focus

India-Specific Notes

Market Universe Options

Nifty 50 Large-cap leaders - 50 stocks representing ~65% of free-float market cap
Nifty 100 Large-cap extended - top 100 stocks by market cap
Nifty 200 Large and mid-cap - broader coverage for diversified ranking
Nifty 500 Comprehensive universe - covers ~95% of market cap
Nifty Midcap 100 Mid-cap focused - stocks ranked 101-200 by market cap
Nifty Smallcap 100 Small-cap focused - stocks ranked 201-300 by market cap
Fo Stocks F&O eligible stocks - approximately 180 stocks with derivatives

Benchmark Options

Nifty 50 Primary large-cap benchmark for overall market comparison
Nifty 500 Broad market benchmark for comprehensive relative strength
Sector Indices NIFTY Bank, IT, Pharma, Auto, FMCG, Metal, Realty, Energy for sector-relative rankings
Nifty Midcap 50 Benchmark for mid-cap stock comparisons
Nifty Smallcap 50 Benchmark for small-cap stock comparisons

Sector Classification

Financial Services Banks, NBFCs, Insurance, AMCs - largest sector weight in NIFTY
Information Technology IT services, software - second largest sector
Oil Gas Energy Reliance, ONGC, BPCL, IOC - significant index weight
Consumer Goods FMCG, consumer durables - defensive sector
Automobile OEMs, auto ancillaries - cyclical sector
Pharma Healthcare Pharma, hospitals, diagnostics - defensive with export exposure
Metals Mining Steel, aluminum, mining - highly cyclical
Cement Construction Cement, construction, infrastructure - capex proxy
Telecom Bharti Airtel, Jio (via Reliance) - concentrated sector
Realty Real estate developers - high beta sector

Indian Market Characteristics

Fii Influence FII flows significantly impact large-cap relative strength
Domestic Flows DII/retail flows drive mid and small-cap momentum
Sector Rotation Clear rotation patterns between defensives and cyclicals
Event Sensitivity Budget, RBI policy, elections create sector-specific momentum
Global Correlation IT and pharma show USD correlation; metals show commodity correlation

Data Sources

Nse India Official price data, corporate actions, index constituents
Bse India Alternative price source, broader stock coverage
Index Providers NIFTY indices for benchmark and sector data
Corporate Actions Splits, bonuses, dividends for adjusted price calculation

Trading Considerations

Liquidity Filter Minimum average daily volume of ₹5 crore for tradeable rankings
Circuit Limits Stocks hitting circuits may show artificial RS distortion
Corporate Actions Ensure price data is adjusted for splits, bonuses
Fo Availability Consider F&O availability for implementation ease

Frequently Asked Questions

What is the difference between Relative Strength (RS) and RSI (Relative Strength Index)?

Despite similar names, they measure completely different things. Relative Strength (RS) compares a stock's performance to a benchmark (like NIFTY 50) - it's about how the stock performs relative to the market. RSI (Relative Strength Index) is a momentum oscillator that measures a stock's own price momentum by comparing recent gains to recent losses, ranging from 0-100. RS is comparative (stock vs market), while RSI is intrinsic (stock vs itself).

How often should I check RS rankings?

For most investors, weekly RS updates are sufficient. RS is a medium-term indicator, and daily changes are often noise. Weekly reviews allow you to track trends without overreacting to short-term fluctuations. If you're a more active trader, you might check twice weekly. Monthly is the minimum for meaningful analysis. Avoid checking daily as it may lead to excessive trading.

Should I only buy stocks in the top 10% by RS?

Top 10% (decile) is a good starting point, but not an absolute rule. Studies show top 20% performs well too. Consider: (1) Smaller universe (NIFTY 50) - top 20% gives you 10 stocks, more diversified, (2) Larger universe (NIFTY 500) - top 10% still gives you 50 stocks, (3) Other factors matter too - combine RS with technical setup, fundamentals, or sector analysis. Very top ranks can also be overextended.

Can a stock with negative absolute returns have positive relative strength?

Yes! This is an important concept. If a stock falls 5% while NIFTY falls 15%, the stock has positive relative strength (+10% relative). It outperformed by losing less. In bear markets, the best RS stocks might be those declining least. This is why relative strength matters - it identifies leaders in all market conditions, not just bull markets.

What benchmark should I use for RS calculation in India?

For most purposes, NIFTY 50 or NIFTY 500 work well. NIFTY 50 is appropriate when comparing large-cap stocks. NIFTY 500 is better for broader universe including mid and small-caps, as it's a more representative benchmark. For sector-specific analysis, use sector indices (NIFTY Bank, NIFTY IT, etc.). Consistency matters - always compare with the same benchmark.

How do I handle stocks that recently listed and don't have 12-month price history?

Several approaches: (1) Exclude stocks with less than 12-month history from ranking - most conservative, (2) Use available history (e.g., 6-month RS for stocks with only 6 months data) but flag them separately, (3) Calculate RS for the available period and compare only within the new-listing cohort. Generally, it's safest to require minimum 6-month history before including in rankings to avoid IPO hype distortions.

Why do some RS strategies underperform during market reversals?

RS strategies are momentum-based - they buy winners and avoid losers. At market turning points: (1) Previous winners may be overextended and due for pullback, (2) Previous losers (beaten-down stocks) often lead recoveries as they're undervalued, (3) The 'look-back' in RS means rankings reflect past, not future. V-shaped recoveries are particularly dangerous - 2009 and March 2020 saw momentum crashes where high RS stocks lagged sharply.

How should I weight multiple timeframe RS scores in a composite?

Common weighting schemes: (1) IBD-style: 40% recent (3M), 20% each for 6M, 9M, 12M - emphasizes recent momentum, (2) Equal weight: 25% each for 1M, 3M, 6M, 12M - balanced approach, (3) Custom for strategy: More weight on recent for short-term trading, more on long-term for position investing. In India, some practitioners use higher weight on 3-6 month given market's momentum characteristics. Test different weights on historical data for your strategy.

What causes a stock's RS to spike suddenly?

Sudden RS spikes can result from: (1) Earnings surprise - strong results cause price gap up, (2) Corporate action announcement - buyback, special dividend, (3) Sector-wide move - if sector moves sharply while stock is sector leader, (4) Large institutional buying - block deal lifting price, (5) Index inclusion announcement. Not all spikes indicate sustainable strength. Evaluate whether the catalyst is one-time or indicates ongoing fundamental improvement.

How do I calculate RS when comparing to a sector index vs market index?

Calculate both: (1) Market RS = (Stock Return - Market Index Return) over period, (2) Sector RS = (Stock Return - Sector Index Return) over period. Interpretation: A stock with Market RS +15% and Sector RS +5% is outperforming market significantly, but only modestly outperforming its sector peers. The +10% (15% - 5%) is due to sector strength, not stock-specific factors. Ideally, you want positive RS on both dimensions.

How can factor crowding affect RS strategy performance?

Factor crowding occurs when too much capital pursues the same momentum/RS stocks. Effects: (1) High RS stocks become overvalued as crowded buying pushes prices up, (2) When crowded positions unwind, high RS stocks crash together, (3) Returns diminish as arbitrage competition increases. Signs of crowding: unusually low dispersion in top RS stocks, high correlation among momentum holdings, rapid inflows to momentum ETFs/strategies. Mitigation: monitor factor flows, maintain diversification, implement crash protection.

What is the optimal lookback period for RS in Indian markets specifically?

Research on Indian markets suggests: (1) 6-12 month lookback captures sustainable momentum best, (2) Very short (1-month) lookback captures noise and reversals, (3) Very long (>12 month) lookback is slow to adapt. Specific findings: 6-month RS shows strongest predictive power for next 1-3 month returns in NSE stocks. However, optimal lookback varies by market cap - smaller caps may benefit from shorter lookbacks (3-6 month) due to faster momentum cycles. Recommend: 6-month primary, validated with 3-month and 12-month.

How should RS rankings be adjusted during high-volatility regimes?

During high-volatility regimes: (1) Shorten RS lookback - recent performance more relevant when markets move fast, (2) Tighten selection threshold - require top 10% instead of top 20%, (3) Add volatility adjustment - Risk-adjusted RS = RS Score / Volatility, (4) Reduce position sizes through volatility scaling, (5) Consider adding trend filter - hold RS strategy only when market trend is positive. Historical analysis shows RS strategy drawdowns cluster in high-volatility periods; adjustments can reduce this.

How do I account for survivorship bias in RS backtests when Indian databases don't include delisted stocks?

Options to mitigate: (1) Use Bloomberg/Reuters that include delisted securities (expensive), (2) Manually compile delisted stock data from NSE archives, (3) Apply survivorship bias adjustment factor (~1-2% annual return reduction), (4) Focus on large-cap universe where delistings are rare, (5) Use live forward testing rather than pure backtesting. For practical purposes, acknowledge the bias in your analysis and be conservative in return expectations. Any backtest on Indian data without delisted stocks overstates returns.

What are the key considerations for implementing RS strategies across multiple markets globally?

Multi-market RS implementation: (1) Currency effects - decide whether to hedge or include currency in RS calculation, (2) Trading hours - different market times affect rebalancing execution, (3) Data standardization - corporate actions, holidays, splits handled differently, (4) Local benchmarks - use country-specific indices for local RS, global indices for cross-country comparison, (5) Liquidity differences - adjust position size rules per market, (6) Tax implications - different capital gains treatments affect net returns, (7) Correlation structure - cross-market momentum may have different dynamics than single-market. Start with developed market extension (US, Europe) before emerging markets.

Ready to test Relative Strength Ranker?

AlgoKing is a flight simulator for traders — real market data, real backtests, zero real-money risk.

Create your free account

Educational simulation platform. Not investment advice. No SEBI registration required.

AlgoKing Support
AI-powered • Instant answers
Hi! I'm AlgoKing's AI assistant. How can I help you today?
Pricing Plans Supported Brokers How to Start MCX Algorithms