# SSF-DSP: Super Smooth Filter Based Detrended Synthetic Price
[Pine Script Implementation of SSF-DSP](https://github.com/mihakralj/pinescript/blob/main/indicators/cycles/ssfdsp.pine)
## Overview and Purpose
The Super Smooth Filter Based Detrended Synthetic Price (SSF-DSP) is an enhanced variant of John Ehlers' Detrended Synthetic Price that replaces the traditional EMA filters with Super Smooth Filters. This advanced implementation provides superior noise reduction and cleaner passband characteristics while maintaining the core band-pass filtering concept. By using SSF's optimized pole placement with complex conjugates, SSF-DSP achieves exceptional cycle isolation with minimal waveform distortion, making it particularly valuable for identifying dominant market cycles in moderately noisy conditions.
The indicator calculates the difference between a quarter-cycle SSF and a half-cycle SSF, creating a band-pass filter that isolates the dominant cycle component while removing both high-frequency noise and low-frequency trend. This mathematical relationship effectively detrends the price data, revealing the underlying cyclic structure that drives market oscillations.
## Core Concepts
* **Dual SSF Structure:** Uses two independent Super Smooth Filters at quarter-cycle and half-cycle periods derived from the dominant cycle
* **Band-Pass Filtering:** The difference between fast and slow SSFs creates a filter that passes the dominant cycle frequency while rejecting noise and trend
* **Enhanced Smoothing:** SSF's Butterworth-style response provides cleaner filtering than EMA-based DSP with better roll-off characteristics
* **Cycle Isolation:** Reveals the pure cyclic component of price movement by removing both short-term noise and long-term trend
* **Reduced Lag:** Despite heavier smoothing, SSF maintains reasonable lag characteristics due to optimized coefficient design
## Common Settings and Parameters
| Parameter | Default | Function | When to Adjust |
| Period | 40 | Dominant cycle period in bars | Match to your identified dominant cycle (typically 20-50 bars for daily charts) |
**Pro Tip:** SSF-DSP provides cleaner signals than EMA-based DSP with ~1.5-2x more smoothing. If you use period=40 for regular DSP, try period=30-35 for SSF-DSP to achieve similar responsiveness with better noise rejection.
## Calculation and Mathematical Foundation
**Simplified explanation:**
SSF-DSP applies two Super Smooth Filters to the price data—one tuned to quarter of the dominant cycle period and one to half the period. The difference between these two filtered signals creates a band-pass effect that isolates the dominant cycle frequency while removing both high-frequency noise and low-frequency trend components.
**Technical formula:**
1. Calculate quarter-cycle and half-cycle periods:
> 🔍 **Technical Note:** The √2 factor in SSF coefficient calculations creates a maximally flat Butterworth magnitude response, providing optimal smoothness in the passband. This results in cleaner cycle isolation compared to EMA-based DSP, which uses simple exponential weighting.