Page 1 of 1

The Roofing Filter: cutting out both the slow drift and the fast noise before an oscillator sees the data

Posted: Mon Nov 23, 2026 4:05 pm
by Shadow Trader
Most oscillators are fed raw closing prices, which means they are fed two kinds of junk at once. There is the slow drift of the trend, which pushes an oscillator to one side and keeps it there, and there is bar-to-bar noise, which makes it twitch. John Ehlers' Roofing Filter is an attempt to clean both out before the oscillator does any work.

It is two filters in a row. First a high-pass filter removes cycles longer than a chosen length, often given as about 48 bars. Then a super smoother removes cycles shorter than about 10 bars. What is left is a band of swings between those two lengths, and that band is what gets passed into something like a stochastic or RSI calculation.

The practical effect is that the oscillator stops pinning at overbought during a trend, because the trend component has been taken out, and it stops flickering because the fastest wiggles are gone. On a chart it looks much tidier.

The catch is that you have chosen, in advance, which swing lengths matter. On M5, a 10-to-48 bar window means swings of roughly 50 minutes to 4 hours. If your scalps live inside 15-minute moves, the filter has removed exactly the movement you trade. If you hold for an hour or two, it fits much better.

So the roofing filter isn't a free improvement, it's a statement about which timescale you care about. I think that is actually its main value: it forces you to say what length of swing your strategy is meant to catch. Has anyone tried shortening the bands for M1 work, and did the oscillator still say anything once the window got that narrow?