Skip to content
Wildflower
Join waitlist

Ehlers' Voss filter and correlation cycle in Studio

John Ehlers' Voss predictive filter and its bandpass, and his correlation cycle angle and market state.

Updated 29 November 2026 · 3 minute read

Three more of John Ehlers' indicators, each written out from the code he published with it. You can use each one in the Indicator condition block, as an Indicator signal and, when it settles quickly enough (below), in the condition exit. They work the same way in Backtest and in the Bot, and your indicator draws them on TradingView, NinjaTrader, MetaTrader 5, cTrader and Quantower.

The Voss predictive filter

Two lines, both in price, so a level is typed in ticks.

  • The bandpass line. The closes with everything but swings near your length taken out. The width you choose sets how near: a smaller width keeps only swings very close to your length.
  • The Voss line. Built from the bandpass and its own last values so that it runs a few candles ahead of it. You choose how many candles ahead, from 1 to 10. It doesn't read future candles: it leads the bandpass, not price.

A row reads one of the two lines. It asks above or below a level, crossing it, and the line rising, falling or turning. In the Bot and Backtest it can also ask whether the Voss line crosses the bandpass line, the signal Ehlers describes.

The correlation cycle

Both compare your last closes with a wave as long as your length.

  • The angle. Where the market is in that wave, from minus 180 to 180 degrees. In a swing it moves forward a little each candle and wraps around. Ehlers' angle never moves back unless it wraps, so in a trend it stays stuck.
  • The market state. 1 when the angle moved less than 9 degrees since the candle before and is 0 or above, minus 1 when it moved that little and is below 0, and 0 otherwise. Ehlers reads 1 and minus 1 as a trend up or down, and 0 as a swinging market.

A row asks above or below a level, crossing it, and the line rising, falling or turning.

This version

Ehlers' angle can stay stuck for as long as the trend lasts, so where it is depends on when the chart started. Wildflower only lets it stay stuck for twice your length of candles, so a Bot that starts later reads the same angle as one that never stopped. In a long trend the angle can then move back a little where his would not.

When it has a value

The angle needs three times your length less one candle, and the market state one more. The Voss filter's lines feed back on themselves, so it waits until its start has faded to under a millionth. That takes longer with a narrow width and more candles ahead: 260 candles at length 20, width 1 and 1 candle ahead, 847 at width 0.25 and 3 ahead, and 1,846 to 1,903 at width 0.1 with 1 to 3 ahead. A condition exit reads the last 512 candles, so a Voss row that needs more can't be an exit. A row that needs more candles than your warmup holds is refused when you put the strategy on an account.

Every number is yours

Each row asks for exactly the numbers its indicator reads: the length, and for the Voss filter the width, how many candles ahead and which line. Nothing has a default.

What's next

Ehlers' recursive median, Reflex, Trendflex and universal oscillator.