Mel Widner's rainbow approach starts with a two-period simple average of price, then takes a two-period average of that, then of that again, ten times over. Each line is smoother and a little more delayed than the one before, and plotted in different colours they look like a rainbow ribbon.
From those ten lines he built two readings. The rainbow oscillator compares the close with the average of all ten lines, usually scaled by the range of highs and lows over a lookback. The rainbow bandwidth is the distance between the highest and lowest of the ten lines at each bar. A wide band means the fast and slow lines have separated, which happens in steady trends. A narrow band means they've bunched together, which happens in ranges and at turns.
Repeated two-bar averaging has a nice property: it smooths in a way similar to a triangular or roughly Gaussian weighting, so the later lines are quite smooth for their length. The tenth line is a heavily smoothed average that still reacts within about a dozen bars.
The drawbacks are the usual ones for ribbons. Ten lines don't give more information than a fast average and a slow one, they just show the steps between them. And the oscillator's reading depends on the scaling lookback, so the same distance can look extreme or ordinary depending on what's in that window.
For scalping, the bandwidth seems the most useful piece, much like the spread of a Guppy group: a simple, smooth 'trend or no trend' number. Has anyone compared rainbow bandwidth with something like ADX or an efficiency ratio on M5 to see whether they agree on which hours are trending?
Rainbow moving averages and the rainbow oscillator: ten recursive averages and what their spread shows
-
Shadow Trader
- Posts: 6144
- Joined: Wed Sep 09, 2026 5:19 pm