T
Traderoid

Hilbert Dominant Cycle

FFT-based cycle identification via Hilbert transform

IndicatorCycleFourierAdvanced

Overview

The Hilbert Dominant Cycle is an advanced indicator using Fourier transforms and the Hilbert mathematical transform to identify the dominant periodicity (cycle length) in price data. Rather than assuming fixed cycle lengths, it dynamically detects the current dominant frequency using signal processing techniques borrowed from digital signal analysis.

This indicator is useful for mean reversion traders seeking to understand market rhythm. When a dominant cycle is identified, traders expect price to oscillate around that period, making reversals more predictable at specific bar intervals. The technique works by decomposing price into frequency components and identifying which frequency has the highest amplitude.

Primarily used by algorithmic and quantitative traders, the Hilbert Dominant Cycle requires statistical literacy but provides unique insights into market cyclicality. Most effective in sideways markets where cyclical patterns dominate. Requires significant historical data for reliable calculations and works best on 4H+ timeframes.

Formula

1. Compute Hilbert Transform of price: H(t)
2. Analytic Signal = Price + i×H(t)
3. Instantaneous Frequency = derivative of phase
4. Dominant Period = 1 / Dominant Frequency
The algorithm detects frequency components; the frequency with highest power becomes the dominant cycle length. Complex mathematical transform identifying cyclical patterns invisible to standard indicators.

Parameters

ParameterTypeDefaultDescription
LookbackInteger64Historical bars for cycle analysis (power of 2 recommended)
Min PeriodInteger10Minimum cycle length to detect in bars
Max PeriodInteger40Maximum cycle length to consider

Common Use Cases

1. Cycle-Based Entry Timing

Identify cycle length, then predict when next low/high should occur based on cycle periodicity. Trade at expected reversal times.

2. Range Trading

In sideways markets with strong cycles, fade highs and lows at regular intervals. Oscillator becomes highly predictable.

3. Trend Phase Identification

Understand where in the cycle current price exists. Trends continue longer during specific cycle phases.

4. Exit Timing Optimization

Exit trades at expected cycle completion times rather than when trades feel good. Mechanical timing reduces emotional exits.

Advantages & Limitations

Advantages

  • Dynamic Cycle Detection: Adapts to changing cyclical patterns without manual adjustment.
  • Unique Insights: Reveals market rhythm invisible to moving averages and oscillators.
  • Algorithmic Edge: Few retail traders use Fourier analysis; provides potential information edge.
  • Scientific Foundation: Based on proven signal processing theory from engineering.

! Limitations

  • Complex Calculations: Requires significant computational resources; may lag on slow systems.
  • High Noise Sensitivity: Works poorly when noise dominates (trending markets). Best in clean oscillating price.
  • Lagging Inherent: Cycle detection requires historical data, causing lag in real-time detection.
  • Steep Learning Curve: Requires statistical/signal analysis knowledge for proper interpretation.

Tips & Best Practices

⚡ Use in Sideways Markets Only

Dominant cycle signals are most reliable in range-bound, oscillating markets. Disable during strong trends where cycles break down.

📊 Compare Multiple Lookbacks

Run Hilbert with different lookback periods. Consistent cycle detection across periods increases confidence in the signal.

🔄 Confirm with Manual Count

Manually count bars between swing highs/lows to verify dominant cycle. If counts match indicator, signal is stronger.

⚠️ Don't Over-rely on Prediction

Predicted reversal times are guides only—use support/resistance confirmation. Markets violate mechanical cycle predictions frequently.

Example Strategy

1. Setup: Confirm Sideways Market + Cycle

Verify ADX < 25 (not trending). Apply Hilbert with lookback 64 and period range 10-40. Identify dominant cycle bar length.

2. Entry: Cycle Reversal Timing + Price Action

Calculate expected reversal bar by adding cycle length to last swing. Enter at that bar with price support/resistance confirmation. Short at highs, long at lows.

3. Stop Loss: Cycle Extension + 1-2 bars

If reversal doesn't occur within expected +/- 1-2 bars of predicted cycle completion, exit trade. Cycle broken.

4. Target: Next Half-Cycle High or Distance

Exit halfway through next cycle (half the cycle bars from entry) or at structure resistance/support whichever comes first. Profit from cyclical swing.

Related Nodes