Advertisement IC Markets

Measuring the dominant cycle with the Hilbert transform: adaptive indicator lengths in practice

Discuss 1-minute to 15-minute price action setups, fading intraday momentum, key support/resistance zones, and proven short-term trading methodologies.
Post Reply
Shadow Trader
Posts: 6144
Joined: Wed Sep 09, 2026 5:19 pm

Measuring the dominant cycle with the Hilbert transform: adaptive indicator lengths in practice

Post by Shadow Trader »

One idea that runs through John Ehlers' work is that indicator lengths should not be fixed. If the market is currently swinging in cycles of about 20 bars, a 14-period RSI is mismatched, and if the cycle shortens to 10 bars, it's mismatched in a different way. His solution was to measure the dominant cycle period in real time using a Hilbert transform, then set indicator lengths from it. An adaptive RSI, for example, might use half the measured cycle as its period.

The Hilbert transform part sounds complicated, but the basic idea is simple. It splits a price series into two components that are a quarter of a cycle apart, called in-phase and quadrature. From the relationship between them you can estimate the phase of the current cycle and how fast that phase is advancing. How fast the phase advances tells you the period. Ehlers' version includes heavy smoothing and limits the measured period, typically between about 6 and 50 bars.

The concept is appealing, but there are real practical issues:

- The measurement assumes there is a cycle to measure. In a strong trend, the estimated period tends to drift towards the upper limit, which isn't really a cycle at all, just the absence of one.
- Short-term forex charts are noisy. The measured period can jump around from bar to bar, so indicators tied to it change their length frequently. That adds a new source of instability rather than removing one.
- Adaptive lengths are hard to test fairly. If the cycle measurement is wrong half the time, the adaptive indicator may perform no better than a fixed one with a sensibly chosen length.

There's also a reasonable argument that most short-term price movement isn't cyclical in a meaningful sense. Spectral analysis of random data will still show "dominant" periods, because noise always contains components at every frequency, and the largest one will simply be whichever happened to be strongest recently.

That doesn't make the idea worthless. Even a rough cycle estimate can be a useful descriptive tool, for example to notice that the market's swings have become much longer than usual.

Does anyone here use Hilbert-based cycle measurements to adjust their indicator periods? Did the adaptive versions hold up better than fixed periods once you accounted for the noise in the measurement itself?
Recommended broker for automated trading & scalping IC Markets
Post Reply