PROTECTED SOURCE SCRIPT

NSE Index Sector Rotation Dashboard [JITENDRA]

140
NSE Index & Sector Rotation Dashboard

To Delivers or Track a complete market structure view in one glance, By Analyzing Factor in All Listed Broad Market & Sectorial Indices

  1. Sector Rotation
  2. Relative Strength
  3. Breakout Detection
  4. Leadership Analysis
  5. Multi-Timeframe Momentum


Overview Summary of This Indicator

NSE Index & Sector Rotation Dashboard is a powerful Market Monitoring Tool that tracks Indices, Sectors in one table. It combines sector rotation theory, relative strength analysis, breakout proximity, and multi-timeframe momentum into a single Dashboard.

Designed for index traders, sector rotation traders, and swing traders, this dashboard helps identify leaders, laggards, emerging strength, and breakouts.

Key Features What This Indicator Does

The Dashboard Type option allows you to switch between:
Giving you a complete top-down trading framework:

Market → Sector → Stock

  1. Macro Market View → Broad Market Indices
  2. Sector Rotation View → Sectoral Indices



Dashboard Type

1) Broad Market Indices Mode

Purpose: Provides a complete Macro market view across all Major Indices Like NIFTY 50

NIFTY NEXT 50
BANK NIFTY
FINNIFTY
MIDCAP & SMALLCAP
INDIA VIX
CNX500
Total Market Indices
Microcap & Factor Indices


2) Sectoral Indices Mode

Purpose: Provides a Sector Rotation and where Really Market Leader Expecting for Change. It Covers Most of The Major Industry Wise Sector.

Sector Rotation Phase (Stage Analysis)

Automatically classifies each index/sector into rotation phases:

  • LEADING → Strong momentum across short & medium term
  • IMPROVING → Early trend reversal
  • LAGGING → Distribution phase
  • BEARISH → Downtrend
  • NEUTRAL → Sideways market


Based on:
  • 1 Day momentum
  • 5 Day momentum
  • 21 Day momentum


Sector Relative Strength vs NIFTY 50 (Configurable Lookback)

Compares every index/sector against NIFTY using a user-defined lookback period.

Shows:
  • OUTPER → Outperforming NIFTY
  • UNDPER → Underperforming NIFTY
  • NEUTRAL


Weekly & Monthly Breakout Proximity (BO/BD)

Early detection of potential breakouts and breakdowns:

  • W-BO → Near Weekly Breakout
  • W-BD → Near Weekly Breakdown
  • M-BO → Near Monthly Breakout
  • M-BD → Near Monthly Breakdown


Uses smart % distance filters

% Distance from 52-Week High

Instantly identifies leaders vs laggards:

  • Near 0% → Strong leadership
  • Far from highs → Weak sector
  • Perfect for momentum and trend-following strategies.


Multi-Timeframe Performance Tracking

Available in Percentage or Point mode.
Track Price Change momentum across multiple horizons:
  • 1D → Daily momentum
  • 5D → Weekly momentum
  • 21D → Monthly momentum
  • 252D → Yearly performance


Advanced Sorting & Filtering

Sort by:
  • Phase
  • RS
  • %52W
  • 1D / 5D / 21D / 252D

Choose ascending or descending order.

Fully Customizable Dashboard

  1. Table position (9 placements)
  2. Table size (Small / Medium / Large)
  3. Column on/off toggles
  4. Percentage or Point change mode



Setting Description With Image/Screenshot

สแนปชอต


SORT & Display Type Description with Image/Screenshot

สแนปชอต



Code Summary How Data Fetched And Calculated
Price Data: For each symbol, one optimized request.security() used.
Minimal security calls
Fast performance
Pine request limits safe

Pine Script®
[ close, // Current close ta.highest(high,252), // 52 week high close[1], // 1 day ago close[5], // 5 days ago close[21], // 21 days ago close[rsDays], // RS lookback close[252] // 1 year ago ]



% Distance from 52 Week High

Pine Script®
%52W = (close - high52) / high52 * 100



Sector Relative Strength vs NIFTY 50

Pine Script®
RS% = (close - close[rsDays]) / close[rsDays] * 100 NIFTY_RS = (niftyClose - niftyClose[rsDays]) / niftyClose[rsDays] * 100 RS_Diff = RS% - NIFTY_RS




Thanks
Trading View Community

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน