RoofingFilter
RoofingFilter is John Ehlers’ filter that keeps only the swings of the price: it removes both the trend and the small noise. The result is an oscillator around zero with almost no lag — it shows which phase a swing is in: rising or falling.
The indicator is drawn in a separate area below the chart.
How to read it
- Above zero is the rising phase of a swing, below zero is the falling phase.
- A zero cross and a turn of the line mean a change of phase.
- A trend by itself does not lift the line: in a steady rise it returns to zero.
The value is in price units, so levels picked on one symbol do not carry over to a symbol with a different price.
How it is calculated
- A high-pass filter removes swings longer than Trend period bars — this is the trend.
- Ehlers’ smoothing filter (SuperSmoother) removes swings shorter than Noise period bars — this is the noise.
The first value appears after “trend period + noise period − 1” bars — on the 57th bar with the default settings.
Parameters
| Parameter | Description | Default |
|---|---|---|
| Trend period | Swings longer than this many bars are treated as the trend and removed. At least 2. | 48 |
| Noise period | Swings shorter than this many bars are treated as noise and smoothed out. At least 2. | 10 |
| Source | The bar price used in the calculation: Close — the close, Median — (High + Low) / 2, Typical — (High + Low + Close) / 3. | Close |
Plots
| Parameter | Description | Default |
|---|---|---|
| Roofing | The price swings without the trend and the noise. | Orange, solid, width 1 |
Levels
| Parameter | Description | Default |
|---|---|---|
| Zero | Above it is the rising phase, below it the falling phase. | 0, blue |
Style
The Roofing line has the Plot (show the line), Label (show the last value on the right scale), Color, Width (1–5) and Style (Solid, Dashes, Dots) fields.
The level has the Show, Value, Color, Width and Style fields. A visible level shows its value on the right scale.
How to add an indicator to the chart is described in Adding an indicator; parameters are changed in the indicator manager.