Sector Power & Market RegimeThe Sector Power & Market Regime Indicator is a multi-asset dashboard designed to quantify market dynamics through the lens of volatility-adjusted momentum. Unlike standard price-action indicators, this tool uses statistical normalization to compare the 11 major S&P 500 sectors, a benchmark (SPY), and custom equities on a leveled playing field.
1. The Rationale: Quantifying Market Behavior
The core philosophy of this indicator is that markets do not just move "up" or "down"—they move through different behavioral archetypes.
Statistical Normalization: By utilizing a Z-Score Window (defaulted to 252 days, or one trading year), the script calculates how an asset’s current performance deviates from its historical mean
. This allows a high-volatility sector like Technology (XLK) to be compared directly to a lower-volatility sector like Utilities (XLU)
.
Volatility Adjusted Momentum: By dividing price momentum (ROC) by the asset's current volatility (ATR), the script ensures that a high-volatility stock doesn't automatically look "stronger" than a stable one. It measures how much an asset is moving relative to its typical daily range.
Z-Scored X-Axis: This ROC/ATR value is then Z-scored over a 252-bar window (one trading year)
. This identifies how many standard deviations the current volatility-adjusted momentum is from its one-year mean.
Volatility Disorder (Z-Scored TR Dispersion):
The script evaluates the standard deviation of True Range relative to average True Range, then z-scores that value over the historical window. This quantifies how unusually dispersed or unstable volatility is versus the asset’s normal behavior, allowing the indicator to distinguish between smooth/trending price action and noisy/chaotic conditions.
. It essentially asks: Is this move backed by sustainable strength, or is it becoming dangerously erratic?
2. Understanding the Four Market States
The indicator categorizes every asset into one of four color-coded regimes
:
Efficient (Green): Characterized by strong, steady momentum with manageable volatility. This represents a healthy, sustainable trend where trend-following strategies typically thrive.
Explosive (Red): This state occurs during high-velocity breakouts or parabolic moves. While highly profitable, these are often "hot" zones that require active trade management.
Chaotic (Orange): Signals high volatility or trend exhaustion. Price action is often unpredictable here, suggesting a "hands-off" approach or a transition to a different regime.
Stable (Blue): Indicates consolidation or low-volatility environments. These are "quiet" periods where the asset is building energy for its next major move.
3. Key Metrics: Power & Age
Power (X-Value): This is the numerical strength of the asset
. A higher number indicates stronger relative momentum. Traders use this to rank sectors from strongest to weakest at a single glance.
Age (d): This tracks how many bars (days) the asset has remained in its current state
.
Fresh Trends: An asset in the Efficient state with an age of "2d" suggests a brand-new trend.
Overextended Trends: An asset in the Explosive state with an age of "20d" suggests the move may be nearing a climax.
--------------------------------------------------------------------------------
How to Use This in Your Trading Strategy
A. Alpha Generation (Relative Strength) Compare your Custom Stocks to the SPY benchmark
. If SPY is in a "Stable" (Blue) state but your stock is "Efficient" (Green) with higher "Power," your stock is showing significant relative strength and is a prime candidate for a long position.
B. Sector movement Tracking Monitor the 11 sectors to see where "Big Money" is moving
. If you see the "Defensive" sectors (XLU, XLP, XLV) moving into Efficient states while "Growth" sectors (XLK, XLY) move into Chaotic states, it is a strong signal of a defensive market shift.
C. Risk Management & Exit Timing The "Age" metric is your primary tool for timing exits
. If a sector you are holding moves from Efficient to Chaotic or stays in Explosive for an extended period, the "Age" will alert you that the trend is maturing, signaling it may be time to trail your stops tighter or harvest profits.
D. Customization Traders can input their own specific watchlist (e.g., MU, STX, BIIB) to see exactly how their personal portfolio is performing relative to the broader market sectors
Indicador Pine Script®






















