Sector Performance Pro

The indicator analyzes a set of sector ETFs (XLP, XLU, XLRE, XLV, XLE, XLB, XLF, XLC, XLI, XLY, XLK) and converts their historical behavior into z-scores. For each sector, logarithmic returns and volatility are calculated over a user-defined lookback period (default: 252 bars, approximately one trading year on a daily chart). These values are then normalized using a normal distribution, allowing all sectors to be compared on the same statistical scale.
The plotted lines represent the log return z-scores of each sector. Positive values indicate above-average relative performance, while negative values indicate underperformance relative to the sector’s own historical distribution. Dashed volatility z-scores are calculated as well and can be enabled if additional risk context is desired.
Horizontal reference lines at ±1, ±2, and ±3 standard deviations (sigma levels) help identify statistically significant deviations. Extreme z-scores may highlight potential overbought or oversold conditions and possible mean-reversion opportunities.
This indicator is intended for market regime analysis, sector rotation strategies, and relative strength comparison, rather than precise entry or exit timing. It provides a high-level statistical view of how sectors are positioned relative to their historical norms.
Invite-only script
Only users approved by the author can access this script. You'll need to request and get permission to use it. This is typically granted after payment. For more details, follow the author's instructions below or contact bronko791 directly.
TradingView does NOT recommend paying for or using a script unless you fully trust its author and understand how it works. You may also find free, open-source alternatives in our community scripts.
Author's instructions
Disclaimer
Invite-only script
Only users approved by the author can access this script. You'll need to request and get permission to use it. This is typically granted after payment. For more details, follow the author's instructions below or contact bronko791 directly.
TradingView does NOT recommend paying for or using a script unless you fully trust its author and understand how it works. You may also find free, open-source alternatives in our community scripts.