Trend indicators

Envelope Channel Indicator: Moving Average Envelope Formula, the Right Percentage, and Real Examples

How a moving average envelope is built, how to pick the percentage from your market's volatility, with the share of closes inside 2.5%, 5% and 10% bands on daily Bitcoin and the S&P 500 ETF, and what a run of closes above the band led to.

· Founder of PatternsWizard
Checked 8 min read
Envelope(20, 5%) on Bitcoin, daily, August 30, 2026 to October 28, 2026. Illustration of how the indicator reads, not a backtest.
On this page
  1. How the envelope is calculated
  2. Choosing the percentage
  3. How to read the envelope
  4. A run of closes above the band, followed to the end
  5. Does it work?
  6. Frequently asked questions

A moving average envelope, or envelope channel, is two lines drawn a fixed percentage above and below a moving average: with a 20-day simple average and 2.5%, the upper line sits 2.5% above the average and the lower line 2.5% below it. The width never adapts to volatility, so the one real decision is the percentage. Set it too tight and price lives outside the bands; too wide and price never reaches them. Below we measure how often daily closes stayed inside at 2.5%, 5% and 10% on two markets with very different volatility, and what a long run of closes above the upper band led to.

5% moving average envelope on daily Bitcoin

Envelope(20, 5%) on Bitcoin, daily, July 1, 2026 to October 28, 2026. Illustration of how the indicator reads, not a backtest.
  • Price, daily candles (hollow up, filled down)
  • Middle, SMA(20) of the close (solid line)
  • Envelope, SMA ±5% (dashed line)
  • Shaded area between the bands
Envelope(20, 5%) on Bitcoin, daily, July 1, 2026 to October 28, 2026. Illustration of how the indicator reads, not a backtest.

How the envelope is calculated

StockCharts gives the standard form: a simple moving average of the close, then the same average multiplied by one plus and one minus the chosen percentage. The bands are parallel to the average in percentage terms, so they move with its slope and nothing else.

Choosing the percentage

StockCharts notes that securities with high volatility need wider bands to contain most of the price action, and that the envelope does not adjust by itself. To see by how much, we counted the daily closes inside a 20-day envelope over the daily bars we use: Bitcoin from March 27, 2025 and the S&P 500 ETF (dividend-adjusted prices) from July 8, 2024, both to October 28, 2026, 581 closes each. A close counts as inside when it is at or between the two bands of the same day.

Share of daily closes inside a 20-day envelope

Share of daily closes inside a 20-day envelope. 2.5% envelope: Bitcoin 43.2%, S&P 500 ETF 79.5%; 5% envelope: Bitcoin 72.6%, S&P 500 ETF 96.4%; 10% envelope: Bitcoin 92.6%, S&P 500 ETF 99.8%. Our computation; the inputs and the method are in the text.
  • Bitcoin
  • S&P 500 ETF
Our computation; the inputs and the method are in the text.581 daily closes on each market to October 28, 2026: Bitcoin from March 27, 2025, the S&P 500 ETF (dividend-adjusted) from July 8, 2024. At twice the width, Bitcoin still kept fewer closes inside than the ETF.

The same 2.5% that holds four closes in five on the ETF holds fewer than half on Bitcoin: of Bitcoin’s 581 closes, 183 were above and 147 below; at 5%, 82 and 77; at 10%, 15 and 28. On the ETF, 79 and 40 at 2.5%, 13 and 8 at 5%, and a single close below at 10%. Over the same period the median 14-day average true range was about 2.9% of price on Bitcoin and 1.1% on the ETF, close to a factor of three, and the envelope that contains a similar share of closes is roughly that much wider. A practical rule follows from it: measure the typical daily range of your market, then pick the percentage that keeps most closes inside, so that a close outside means something. Volatility changes, so a width chosen on a calm year will be too tight in a volatile one; that is the problem Bollinger Bands, Keltner channels and STARC Bands solve by tying the width to standard deviation or ATR.

2.5% moving average envelope on the S&P 500 ETF

Envelope(20, 2.5%) on S&P 500 ETF, dividend-adjusted prices, daily, May 8, 2026 to October 28, 2026. Illustration of how the indicator reads, not a backtest.
  • Price, daily candles (hollow up, filled down)
  • Middle, SMA(20) of the close (solid line)
  • Envelope, SMA ±2.5% (dashed line)
  • Shaded area between the bands
Envelope(20, 2.5%) on S&P 500 ETF, dividend-adjusted prices, daily, May 8, 2026 to October 28, 2026. Illustration of how the indicator reads, not a backtest.

How to read the envelope

What you seeThe usual reading
Bands sloping up or downThe direction of the moving average, and so of the trend
Price riding the upper bandA strong uptrend, not necessarily a sell
A close above the upper band in a flat channelOverbought, in StockCharts' terms
A close below the lower band in a flat channelOversold

StockCharts adds a condition: overbought and oversold readings are best used when the trend flattens. In a trend, closes outside the band are what a trend looks like.

Same close above the band, two readings

Same close above the band, two readings: left: a flat moving average with its upper and lower bands; price closes above the upper band once, then returns to the middle, so the overbought reading fits. Right: a rising average with its bands; price rides the upper band and keeps closing above it, which is the trend itself.
Schematic, not market data.

A run of closes above the band, followed to the end

The first chart uses a 5% envelope on daily Bitcoin from July 1 to October 28, 2026. On August 19, 2026, Bitcoin closed at 69,334.79, above the upper band for the first time in the window. It then closed above the band on 15 of the next 16 days, through September 4. Read as overbought, the first close was a sell; it was the start of the move. Ten days later the close was 12.83% higher, thirty days later 16.66% higher (80,883.87 on September 18), and on October 7 still 20.17% higher at 83,321.81. A second run of six closes above the band, from September 21 (86,620) to September 26, was followed by a dip: 2.01% lower ten days later, 3.29% lower twenty days later.

On the ETF chart, with 2.5%, 14 closes fell outside the envelope in the window, in four episodes. The first was already under way when the chart starts on May 8, 2026: it began on April 8 at 672.60, and from then to May 14 the ETF closed above the band on all but one session (May 4), while the average, still falling when the run began and flat by April 10, was rising about 2% over five sessions by early May. The last close above, on May 14 at 744.40, was 10.7% above the April 8 close, and the ETF then eased: 1.11% higher ten sessions after May 14, 0.86% lower twenty sessions after. The chart below follows each episode from its first close outside the band: the spring run (26 closes above, 5 in the window), a single close below on June 10 at 721.77, and two August runs of 5 and 3 closes above.

S&P 500 ETF after each close outside a 2.5% envelope

S&P 500 ETF after each close outside a 2.5% envelope. Above, April 8 to May 14 (average turning up): 10 sessions after +5.21%, 20 sessions after +8.55%; Below, June 10 (average flat): 10 sessions after +1.48%, 20 sessions after +4.34%; Above, August 4 to 10 (almost flat): 10 sessions after −0.50%, 20 sessions after −1.24%; Above, August 12 to 14 (almost flat): 10 sessions after −0.83%, 20 sessions after −1.90%. Our computation; the inputs and the method are in the text.
  • 10 sessions after
  • 20 sessions after
Our computation; the inputs and the method are in the text.Change in the close from the first close outside the band of each episode, 2026, dividend-adjusted. With a flat average, the overbought and oversold reading pointed the right way three times out of three; in the spring run, it did not.

From August 17, after that last close outside the band, price held in the upper half of the channel on 28 of the 52 sessions to October 28, and closed at 772.31, above the 20-day average. The overbought and oversold reading fared better in the three episodes with a flat average than in the spring run, during which the average turned up, and failed on Bitcoin in August. Four episodes say nothing about frequency; they show the reading working in a quiet market and failing in a trending one. That split is the usual test of mean reversion trading, which bets on a return to the average and loses when the move continues.

Does it work?

We have no long-run measurement of moving average envelopes: our bench tests chart patterns detected by rule against random entries, not indicators (see our methodology). The counts above describe how the bands fit two markets over the last 581 daily closes of each; they show how to choose a width, not that crossing the bands predicts anything. For the average at the center, see the moving average; for the rest of the family, the list of trend indicators.

Every pattern's results on one sheet

The only pattern cheat sheet with tested stats: 152 patterns, what the textbook says and what really happened on 6 markets. Free PDF, sent to your inbox.

The PDF by email, plus our newsletter: new tests and results that change. Unsubscribe anytime. Privacy.

Frequently asked questions

What is the envelope indicator?

A moving average with two bands drawn a fixed percentage above and below it. It shows the trend through the slope of the average and how stretched price is from it.

What are the best envelope indicator settings?

The common example is a 20-day SMA with 2.5%. The right percentage depends on volatility: on our data, 2.5% kept about four closes in five inside on the S&P 500 ETF, while Bitcoin needed about 5% to keep three in four and 10% to keep more than nine in ten.

What is the difference between an envelope and Bollinger Bands?

An envelope has a fixed width in percent. Bollinger Bands are set by the standard deviation of closes, so they widen when the market gets volatile and narrow when it calms.

What does ENV mean on a chart?

ENV is the usual short name of the envelope indicator on charting platforms: a moving average and two percentage bands.

Is a close above the upper envelope a sell signal?

Only when the trend is flat. In a trend, price can ride the upper band for weeks: on daily Bitcoin in August 2026 it closed above a 5% envelope on 16 of 17 days, and was still about 20% higher seven weeks after the first close above.

Sources

  1. StockCharts ChartSchool, Moving Average Envelopes
, Founder of PatternsWizard

Passionate about finance, quantitative trading and data analysis. Amaury built the PatternsWizard test bench, which detects each pattern on full price history and measures what happened next against random entries.

PatternsWizard tests chart and candlestick patterns on full market history, against random entries. How we test patterns.

179 patterns testedRandom-walk self-test passed

Related guides

All trend indicators articles