Rainbow Charts: Mel Widner’s Ten Moving Averages, Not the Bitcoin Rainbow Chart
How Widner’s rainbow is built from ten recursive two-bar averages, how to read the order and the spread of the bands, why the Bitcoin rainbow chart is a different tool, and what the bands showed on daily Bitcoin in 2026.

On this page
Rainbow Charts are a trend display by Mel Widner, published in the July 1997 issue of Technical Analysis of Stocks and Commodities. They draw ten moving averages of the close on the price chart. Each line is a 2-bar simple moving average of the line before it, so the first follows price closely and the tenth is the smoothest. Colored from red to violet, the bands show at a glance whether price is pulling away from its recent average or turning back into it.
Rainbow Charts on daily Bitcoin

- Price, daily candles (hollow up, filled down)
- Average 1, SMA(2) of the close (red, least smoothed) (red line)
- Averages 2 to 9 in between, each an SMA(2) of the one before; average 10 in violet, most smoothed (violet line)
How the Rainbow Charts are calculated
Infront’s documentation of the indicator gives Widner’s recursive smoothing. The first average is half the sum of the last two closes. The second is half the sum of the last two values of the first. The same step repeats up to the tenth average. The default period is 2. Because each line smooths the previous one, the tenth line depends on the last 11 closes, with most of its weight on the middle of that span, the way repeated averaging piles weight on the center.
Expanding the ten steps gives the exact weights. Line 10 is a weighted average of the last 11 closes whose weights are the binomial coefficients 1, 10, 45, 120, 210, 252, 210, 120, 45, 10 and 1, divided by 1,024. The close of five bars ago weighs 24.6%; today's close weighs 0.1%, as much as the close of ten bars ago.
Weight of each close in line 10, period 2

One property follows from the formula and explains how often the order breaks. Line 1 is above line 2 exactly when the close is above the close two bars earlier. A single day that does not beat the close of two days before is enough to cross the two fastest lines, even in a strong uptrend.
Rainbow Charts: why one weak close crosses the two fastest lines

How to read the bands
LuxAlgo, which documents the stack of rainbow averages, reads it by order and by spread: a bullish stack has each faster line above the slower one, a widening spread marks a strengthening trend, and a compressed fan a consolidation.
| What you see | What it says |
|---|---|
| Price above all ten lines, red on top, violet at the bottom | Each faster average is above the slower one: the very short-term trend is up |
| Price below all ten lines, violet on top, red at the bottom | The very short-term trend is down |
| Lines crossing each other | No clear direction over the last few bars |
| Bands spreading apart | The fast lines are pulling away from the slow ones: the move is accelerating |
| Bands narrowing | The move is slowing, or price is moving sideways |
Rainbow Charts versus the Bitcoin rainbow chart
The name is also used for the Bitcoin rainbow chart, which shares only the colors. According to Blockchaincenter, which publishes it, it combines color bands with a logarithmic regression of the Bitcoin price posted in 2014 by a Bitcoin Talk user, trolololo. The bands are read as zones where Bitcoin would be cheap or expensive relative to that curve. The same page says the chart was never a serious attempt to model or predict the price, and warns: “You can not predict the price of Bitcoin with a rainbow!”
| Widner’s Rainbow Charts | Bitcoin rainbow chart | |
|---|---|---|
| What it is | Ten recursive moving averages of the close | Color bands around a curve fitted to Bitcoin’s price on a logarithmic scale |
| Markets | Any market, any timeframe | Bitcoin only |
| Data used | The last 11 closes, with the default period of 2 | Bitcoin’s whole price history |
| What it says | Where price stands against its very recent averages | Where price stands against one long-term curve |
Rainbow Charts on a real chart
The chart under the introduction shows the ten lines on daily Bitcoin closes from February 21 to October 28, 2026. In that window the lowest close was 58,624.71 on June 30 and the highest 86,620 on September 21. We checked, day by day, how often the ten lines were fully in order. They were stacked bullishly, line 1 on top and line 10 at the bottom, on 41 of the 250 days (16.4%), and bearishly on 36 days (14.4%). On the other 173 days at least two neighboring lines were crossed. The longest bullish runs lasted five days, from March 13 to 17 and from April 14 to 18, and the longest bearish run six days, from June 1 to 6.
The spread between the highest and the lowest of the ten lines reached 16.39% of the close on August 22, after a sharp rise, and fell to 0.47% on May 26. On a market that moves as much as Bitcoin from one day to the next, a full stack built on 11 closes rarely lasts: the reading is very short-term. Widner’s period can be raised to make each average longer, but on these data it did not make a full stack more frequent; it made it rarer.
Days with all ten lines in order, by period

- Bitcoin daily
- S&P 500 ETF daily
With a period of 10, Bitcoin’s lines were fully in order on 15.2% of the 250 days instead of 30.8%; the longest runs did grow, to nine days each way instead of five and six. We have no source that explains the drop, and we did not test a reason for it. LuxAlgo’s warning is about rainbow stacks in general: every line is computed from the same closes, so the stack can look unanimous because it is one signal drawn ten times.
The S&P 500 ETF, a calmer market, gives a similar picture. Over the 250 sessions to October 28, 2026, the lines were stacked bullishly on 50 days (20.0%) and bearishly on 29 (11.6%). The longest bullish run lasted ten sessions, to April 20, 2026, as the ETF recovered from its March 30 low, and the spread between the lines never exceeded 4.01% of the close.
Rainbow Charts on the daily S&P 500 ETF

- Price, daily candles (hollow up, filled down)
- Average 1, SMA(2) of the close (red, least smoothed) (red line)
- Averages 2 to 9 in between, each an SMA(2) of the one before; average 10 in violet, most smoothed (violet line)
Does it work?
We have no long-run measurement of Rainbow Charts: our bench tests chart patterns detected by rule against random entries, not indicators (see our methodology). The counts above describe two markets over 250 bars each and are not a test. A fair test would compare trades taken on a full stack with the same trades taken on a single moving average, on many markets, with costs.
The same ten lines feed the Rainbow Oscillator. For other ways to read averages, see the moving average crossover and the ALMA indicator, or the full list of trend indicators.
Frequently asked questions
What is a rainbow chart in trading?
In technical analysis, it is Mel Widner’s Rainbow Charts indicator: ten moving averages, each smoothing the one before, colored from red to violet on the price chart. It shows the direction and the strength of the very short-term trend.
How are Rainbow Charts calculated?
Take a 2-bar simple moving average of the close, then a 2-bar average of that line, and repeat until you have ten lines. The tenth line depends on the last 11 closes.
Is the Bitcoin rainbow chart the same indicator?
No. The Bitcoin rainbow chart is a set of color bands around a logarithmic curve fitted to Bitcoin’s price history. Widner’s Rainbow Charts are moving averages that work on any market and say nothing about value.
What are the best settings for Rainbow Charts?
The default period is 2 with ten averages. A longer period gives smoother lines and more lag; on the two markets we checked, it also made a full stack of the ten lines rarer, not more frequent. No setting has been shown to be the best; that depends on the market and the timeframe, and only a test can tell.
What is the Rainbow Oscillator?
An oscillator built by Widner from the same ten lines: it measures how far the close is from their average, scaled by the recent range of closes. See our page on the Rainbow Oscillator.
