Singular Spectrum Decomposition
By LuxAlgoFeb 13, 2026

The Singular Spectrum Decomposition indicator is an advanced trading indicator built on Singular Spectrum Analysis (SSA) that separates raw price action into clear, interpretable components: Trend, Cycles, and Noise. By mathematically decomposing market data, this tool helps traders uncover the true structural behavior of an asset while also providing a smooth, jump-free trend forecast using Linear Recurrence Relations (LRR). It is designed for traders who want deeper insight into market structure, cycle timing, and mean reversion opportunities.
Warning: This decomposition is displayed retrospectively; historical values observed are subject to repainting.
USAGE
Unlike traditional indicators that rely on fixed formulas such as moving averages or oscillators, this trading indicator performs a full statistical decomposition of price. It analyzes a defined rolling window of recent bars and extracts the most dominant components driving market behavior.
The result is a layered view of price action, allowing traders to separate long-term direction, cyclical rotations, and short-term volatility.
The indicator splits price into four visual components:
- Trend (Overlay): The primary low-frequency structure plotted directly on the price chart. This represents the dominant directional bias and acts as a structural baseline for trend-following strategies.
- Long Term Periodic (P1): The most significant cyclical component. This often captures major swing rotations, macro pullbacks, or broader seasonal tendencies.
- Short Term Periodic (P2): A faster oscillating cycle that reflects intermediate pullbacks and shorter-term momentum shifts.
- Noise: The high-frequency residual component that represents randomness or structural volatility. This helps traders detect unstable or liquidity-driven environments.
By separating price into these layers, traders can stop reacting to “messy” raw candles and instead trade with structural clarity.
Cycle Exhaustion (P1/P2 Extremes)
One of the most powerful applications of this trading strategy is identifying cyclical exhaustion.
When the Long Term Periodic (P1) or Short Term Periodic (P2) components reach extreme values and begin curving back toward the zero line, it often signals that the current swing is losing momentum.
For example:
- If P1 is extended and starts flattening, the dominant cycle may be nearing completion.
- If P2 peaks while price is extended from trend, it may indicate a pullback is likely.
This approach provides a structured alternative to traditional overbought/oversold indicators, as it is derived from actual spectral decomposition rather than fixed thresholds.
Trend-Forecast Confluence & Mean Reversion
The dashed Trend extrapolation projects the likely path of the structural trend using Linear Recurrence Relations (LRR). This creates a forward-looking estimate of the market’s core bias.
Traders can use this in multiple ways:
- Trend Confirmation: If price pulls back toward a rising trend forecast and holds, it reinforces bullish structure.
- Mean Reversion Setup: If price becomes significantly extended from the solid Trend line while the forecast flattens or turns, it may signal a reversion opportunity.
- Structural Shift Detection: A price break through a flat or reversing trend projection may suggest regime change.
This makes the indicator suitable for both trend-following strategies and statistical mean reversion approaches.
Timing Entries with Dashboard Metrics
The built-in dashboard calculates the “Average Period” of the dominant cycles using zero-crossing detection. This provides a quantifiable cycle length in bars.
Example:
- If P2 shows an average period of 20 bars, a trader can anticipate that troughs tend to occur roughly 10 bars after peaks.
- Aligning these cycle expectations with the dominant Trend direction can significantly improve entry timing precision.
This transforms cycle analysis from subjective visual interpretation into a measurable trading framework.
Filtering Fakeouts with the Noise Component
The Noise component helps differentiate between structural breakouts and unstable volatility spikes.
- A breakout with low Noise expansion suggests a structurally supported move.
- A breakout accompanied by aggressive Noise spikes may indicate a liquidity sweep or fakeout.
This feature is particularly useful in volatile markets, helping traders avoid reacting to random price fluctuations.
DETAILS
The indicator implements a complete Singular Spectrum Analysis pipeline:
- Embedding: Constructs a trajectory matrix from the price series.
- Singular Value Decomposition: Performs eigendecomposition of the covariance matrix to isolate principal components.
- Diagonal Averaging: Reconstructs the time series into interpretable subcomponents.
This statistical foundation allows the indicator to extract meaningful structure without relying on arbitrary smoothing parameters.
Jump-Free Extrapolation
A common issue with LRR-based projections is the appearance of a vertical discontinuity between historical reconstruction and forecast.
This tool solves that problem by:
- Calculating relative LRR deltas
- Anchoring them to the final reconstructed SSA value
- Ensuring seamless visual continuity
The result is a mathematically consistent yet visually smooth forecast, ideal for traders who rely on clean structural signals.
Dashboard Metrics
The dashboard provides real-time cycle diagnostics, including:
- Average Period of P1
- Average Period of P2
- Dynamic cycle measurement via zero-crossing detection
This allows traders to quantify cycle frequency without manual chart measurement, making the tool suitable for systematic trading strategies and algorithmic workflows.
SETTINGS
The indicator includes customizable parameters to adapt to different markets and trading styles:
- Window Length (L): Controls the embedding dimension. Larger values detect longer cycles and produce smoother trends but may introduce lag.
- Buffer Length (N): Defines the number of recent bars used for static decomposition.
- Forecast Length: Determines how many bars the Trend component is projected forward.
- Show Trend on Price: Toggles the reconstructed trend overlay.
- Show Periodic/Noise: Controls visibility of P1, P2, and Noise components.
- Show Extrapolation: Enables or disables the dashed forecast projection.
- Dashboard Settings: Adjusts the position, size, and visibility of the metrics panel.
These settings allow the Singular Spectrum Decomposition to function as both a discretionary trading indicator and a structured analytical tool.
FAQ
What type of trading strategy works best with Singular Spectrum Decomposition?
This trading indicator works well for trend-following strategies, cycle-based swing trading, and mean reversion systems. By combining Trend direction with P1/P2 cycle extremes, traders can align entries with both structural bias and timing precision.
Does the indicator repaint?
Yes. Because SSA decomposition is calculated retrospectively on a rolling window, historical component values may repaint as new data becomes available.
How do I access the Singular Spectrum Decomposition [LuxAlgo] indicator?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.