Wavelet Analysis
A diagnostic multi-scale decomposition study for visualizing how price action decomposes across different frequency bands. Ideal for research, understanding market structure, and developing custom strategies.
Overview
The Wavelet Analysis study shows you the "internals" of wavelet decomposition:
- Detail Bands (D1-D7): High to low frequency components
- Approximation (A_J): The underlying trend
- Optional Denoising: See the effect of noise removal
- Signed RMS View: Energy direction per level
This study is for research and analysis — it helps you understand which frequency bands contain the information you care about.
How It Works
Using MODWT (Maximal Overlap Discrete Wavelet Transform) with symmetric boundaries:
- Input: Close prices (or selected price source)
- Decomposition: Split into J detail levels + 1 approximation
- Visualization: Each level plotted in separate panel or overlaid
Frequency Interpretation
| Level | Captures | Typical Timeframe |
|---|---|---|
| D1 | Highest frequency noise | 2-4 bars |
| D2 | Short-term fluctuations | 4-8 bars |
| D3 | Intraday swings | 8-16 bars |
| D4 | Daily patterns | 16-32 bars |
| D5 | Weekly patterns | 32-64 bars |
| D6-D7 | Longer cycles | 64+ bars |
| A_J | Trend | Longest scale |
Display Options
Multi-Panel View
Each detail level in its own panel:
- D1 at top (fastest)
- D7/A_J at bottom (slowest)
- Clear separation of frequency bands
Signed RMS View
Instead of raw coefficients, show directional energy:
- Positive RMS → bullish energy at that scale
- Negative RMS → bearish energy at that scale
- Easier to read for trading decisions
Overlay Mode
All levels on one panel with different colors:
- Useful for seeing phase relationships
- Can be visually busy with many levels
Settings
Wavelet Transform
| Setting | Default | Description |
|---|---|---|
| Wavelet Type | DB4 | Wavelet family |
| Decomposition Levels | 5 | Number of detail bands (D1 to D_J) |
| Boundaries | Symmetric | Boundary handling (symmetric recommended) |
Denoising
| Setting | Default | Description |
|---|---|---|
| Apply Denoising | false | Enable threshold-based noise removal |
| Threshold Method | Bayes | BayesShrink or Universal |
| Shrinkage Type | Soft | Soft or Hard thresholding |
Display
| Setting | Default | Description |
|---|---|---|
| View Mode | Multi-Panel | Multi-Panel, Overlay, or Signed RMS |
| Show Approximation | true | Include A_J in display |
| Show Details | D1-D5 | Which detail levels to show |
Use Cases
Finding the Right Decomposition Level
Before using SWT Trend + Momentum, use Wavelet Analysis to determine:
- Which levels contain mostly noise (typically D1-D2)
- Which levels contain your trading signals
- Optimal decomposition depth for your timeframe
Understanding Market Regimes
Different market conditions show different energy patterns:
- Trending: Energy concentrated in lower frequencies (D4+, A_J)
- Ranging: Energy spread across mid-frequencies (D2-D4)
- Volatile: Spikes in high frequencies (D1-D2)
Developing Custom Indicators
Use the decomposition to build custom signals:
- Energy ratio between scales
- Cross-scale divergence
- Level-specific momentum
Validating Denoising Settings
Toggle denoising on/off to see:
- What gets removed as "noise"
- Whether important signals are preserved
- Optimal threshold settings for your data
Interpreting the Output
Raw Coefficients
- Oscillate around zero
- Magnitude = energy at that scale
- Sign = direction of movement
Signed RMS
- Smoother visualization
- Positive = bullish pressure
- Negative = bearish pressure
- Larger magnitude = stronger conviction
Cross-Scale Patterns
Look for alignment across scales:
- All levels positive: Strong bullish alignment
- All levels negative: Strong bearish alignment
- Mixed signals: Consolidation or reversal zone
Troubleshooting
Too Many Bars Required
- Reduce Decomposition Levels
- Use shorter lookback period
Noisy Display
- Enable Apply Denoising
- Switch to Signed RMS view
- Focus on levels D3+ for cleaner signals
See Also
- SWT Trend + Momentum - Trading application of wavelet analysis
- VectorWave MODWT - Technical MODWT documentation