sector-rotation-detector

Analyzes 11 SPDR sector ETFs' momentum to rank sectors by 1, 3, and 6-month performance using Python and yfinance.

2|Updated Jun 14, 2026
One-click install
npx skills add https://github.com/IhsanDanish25/claude-trading-skills --skill sector-rotation-detector-ihsandanish25
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sector-rotation-detector
Source: https://github.com/IhsanDanish25/claude-trading-skills/tree/main/skills/sector-rotation-detector
Command: npx skills add https://github.com/IhsanDanish25/claude-trading-skills --skill sector-rotation-detector-ihsandanish25

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires yfinance, and includes scripts (resource) components.

What problem does it solve?

This Skill helps users understand sector rotation patterns and identify leading sectors by analyzing momentum across 11 SPDR sector ETFs.

Core Features & Use Cases

  • Sector Momentum Analysis: Measures 1-month, 3-month, and 6-month momentum for sectors.
  • Rotation Identification: Identifies sectors that are leading or lagging and where money is flowing.
  • Use Case: For traders or investors looking to gain macro context for individual stock selection or understand market trends.

Quick Start

Run the Sector Rotation Detector to get a sector momentum ranking and identify rotation patterns.

Frequently Asked Questions about sector-rotation-detector

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect sector rotation patterns using ETF momentum?

To detect sector rotation, you need to analyze relative momentum across sector ETFs. This Skill measures 1-month, 3-month, and 6-month momentum across 11 SPDR sector ETFs to identify leading sectors and track where market money is flowing.

What is sector rotation analysis and how does it help with trading decisions?

Sector rotation analysis identifies which market sectors are leading or lagging based on relative momentum. By tracking 11 SPDR sector ETFs across multiple timeframes, it provides macro context to inform individual stock selection and understand broader market trends.

Do I need Python and yfinance to analyze SPDR sector ETF momentum?

Yes, you need Python and the yfinance library to retrieve ETF data for sector momentum analysis. The Skill uses yfinance to fetch historical price data for 11 SPDR sector ETFs required to calculate 1-month, 3-month, and 6-month relative momentum rankings.

Can I use sector momentum rankings to find leading sectors for macro context?

Yes, you can use sector momentum rankings to identify leading sectors for macro context. The Skill ranks 11 SPDR sector ETFs by their relative performance over 1, 3, and 6-month periods, highlighting where capital is flowing to guide trading analysis.

What's the best way to track market trends across 11 SPDR sector ETFs?

The best way to track market trends across SPDR sector ETFs is by comparing their relative momentum over multiple timeframes. This Skill calculates 1-month, 3-month, and 6-month momentum for all 11 sectors, ranking them to reveal rotation patterns and market trend shifts.

Why does my sector rotation analysis require multiple momentum timeframes?

Sector rotation analysis requires multiple timeframes like 1, 3, and 6 months to accurately confirm momentum trends. Comparing short, medium, and long-term relative momentum across 11 SPDR sector ETFs helps distinguish temporary market fluctuations from sustained sector rotation patterns.