PROTECTED SOURCE SCRIPT
업데이트됨

SectorRotationRadar

713
The Sector Rotation Radar is a powerful visual analysis tool designed to track the relative strength and momentum of a stock compared to a benchmark index and its associated sector ETF. It helps traders and investors identify where an asset stands within the broader market cycle and spot rotation patterns across sectors and timeframes.

🔧 Key Features:
Benchmark Comparison: Measures the relative performance (strength and momentum) of the current symbol against a chosen benchmark (default: SPX), highlighting over- or underperformance.
Automatic Sector Detection: Automatically links stocks to their relevant sector ETFs (e.g., XLK, XLF, XLU), based on an extensive internal symbol map.
Multi-Timeframe Analysis: Supports simultaneous comparison across the current, next, and even third-higher timeframes (e.g., Daily → Weekly → Monthly), providing a bigger-picture perspective of trend shifts.
Tail Visualization: Displays a "trail" of price behavior over time, visualizing how the asset has moved in terms of relative strength and momentum across a user-defined period.
Quadrant-Based Layout: The chart is divided into four dynamic main zones, each representing a phase in the strength/momentum cycle:

🔄 Improving: Gaining strength and momentum
🚀 Leading: High strength and high momentum — top performers
💤 Weakening: Losing momentum while still strong
🐢 Lagging: Low strength and low momentum — underperformers

Clean Chart Visualization:

Background grid with axis labels
Dynamic tails and data points for each symbol
Option to include the associated sector ETF for context
Descriptive labels showing exact strength/momentum values per point


⚙️ Customization Options:
Benchmark Selector: Choose any symbol to compare against (e.g., SPX, Nasdaq, custom index)
Start Date Control: Option to fix a historical start point or use the current data range
Trail Length: Set the number of previous data points to display
Additional Timeframes: Enable analysis of one or two higher timeframes beyond the current
Sector ETF Display: Toggle to show or hide the related sector ETF alongside the asset


📚 Technical Architecture:
The indicator relies on external modules for:
Statistical modeling
Relative strength and momentum calculations
Chart rendering and label drawing
These components work together to compute and display a dynamic, real-time map of asset performance over time.


🧠 Use Case:
Sector Rotation Radar is ideal for traders looking to:
Spot stocks or sectors rotating into strength or weakness
Confirm alignment across multiple timeframes
Identify sector leaders and laggards
Understand how a symbol is positioned relative to the broader market and its peers


This tool is especially valuable for swing traders, sector rotation strategies, and macro-aware investors who want a visual edge in decision-making.
릴리즈 노트
- refactoring
릴리즈 노트
- bugfixing
릴리즈 노트
- bugfixing
릴리즈 노트
- refactoring
릴리즈 노트
- added S&P Sectors and Crypto
릴리즈 노트
- added mainchart background-color
릴리즈 노트
+ added transition alerts (beta):
A comma separated list for transition-alert with a four value pattern *-*-*-*.

1: The ticker symbol
2: Sectorindex that is exited
3: Sectorindex that is entered
4: One of the displayed timeframes in brackets
An asterisk * means all possible values.

e.g:
*-0-1-* -> Notify for all displayed symbols when leaving sectorindex 0 and entering sectorindex 1 for all displayed timeframes.
*-4-*-1D -> Notify for all displayed symbols when leaving sectorindex 4 and entering any sectorindex for 1D timeframe
*-*-4-1D -> Notify for all displayed symbols when any sectorindex and entering sectorindex 4 for 1D timeframe
*-*-*-* -> Notify for all displayed symbols and all transitions for all display timeframes
XLC-5-6-1W -> Notify for XLC symbol when leaving sectorindex 5 and entering sectorindex 6 for 1W timeframe
XLC-5-6-1W,XLB-4-5-* -> A comma separated list of transitions

Additionally, a TradingView alert must be set up for the rule to work.

면책사항

해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.