Extra indicators

Ehlers Sine Wave

The phase of the market's dominant cycle as two sine lines; their crossings mark cycle turns.

2 min read · Try it on a live chart ↗

The idea in plain words

John Ehlers measures the dominant cycle's period with a Hilbert transform, then its phase. The sine of the phase and the sine 45° ahead (lead sine) cross shortly before cycle highs and lows. In trends the phase stalls and the lines run flat.

How it is calculated

DC period from the Hilbert transform; phase = arctan of the cycle's sine and cosine parts over one period of the smoothed price; Sine = sin(phase), Lead sine = sin(phase + 45°).

Real = Σ sin(360k ÷ P) × Smooth[k],  Imag = Σ cos(360k ÷ P) × Smooth[k]   (k = 0…P−1)
Phase = arctan(Real ÷ Imag) + 90° (+180° when Imag < 0)
Sine = sin(Phase),  Lead sine = sin(Phase + 45°)

How to use it

  • Lead sine crossing above Sine: a cycle low; crossing below: a cycle high.
  • Long flat stretches: a trend; stop trading the cycle.

Drawing conclusions

  • Works in cycling (ranging) markets; Ehlers himself says to switch to trend tools when it flattens.

Example

AUDUSD H1 swings in a range for three days; the lead sine crosses above the sine within a candle or two of each low.

Prices in examples are illustrative.

Watch out for

  • The first 50 candles are a warm-up.
  • Cycles change; signals in a trend are false.

A little history

From John Ehlers' "Rocket Science for Traders" (2001).

Educational content only. No indicator or pattern predicts the future, and nothing here is investment advice.