Moving Average Envelopes

Envelopes
Indicator

VolatilityOn the price chartFree on ChartLabs

Moving Average Envelopes draw bands a fixed percent above and below a 20-bar SMA, 10% by default. They show how stretched price is from its average.

A classic percentage band around a moving average. Reviewed by the ChartLabs team, updated Nov 2026.

Example market1hIndicatorsAtlas AIEnvelopeschartlabs.co/charts
Atlas reads it

Price is inside the bands, -1.44% from the 20-bar SMA.

Basis 70,047 · ±3%

Atlas reads it

Price is inside the bands, -1.44% from the 20-bar SMA.

Basis 70,047 · ±3%

Illustration on simulated data.

Moving Average EnvelopesWhat is the Envelopes indicator?

The Envelope draws three lines on the price chart: an orange Basis, the 20-bar simple moving average, and blue Upper and Lower bands with a light blue fill between them.

Each band is the basis shifted by a fixed percent. With the default 10%, the upper band is 10% above the average and the lower band 10% under it, so the gap follows price but never widens with volatility.

The 10% default suits slow daily charts of volatile markets. On the hourly example market on this page price never gets that far from its average, so the hero and scenes use 3%, shown in the legend. One mistake scene draws the 10% bands.

Envelopes or Bollinger Bands?

Bollinger Bands widen and narrow with volatility. Envelopes keep a fixed percent, so they only move with the average.

Exponential basis

Turn on Exponential to use a 20-bar EMA instead of the SMA. The bands follow it the same way.

Envelopes signalsFive patterns to know.

1Bullish

Walking the upper band

In a strong advance the highs keep reaching the upper band while closes stay above the basis.

2Bearish

Walking the lower band

In a decline the lows keep reaching the lower band while closes stay under the basis.

3Bullish lean

Pullback to the basis

In an uptrend price dips to the average and closes back above it.

No band touched
4Inconclusive

Quiet inside the bands

Price stays between the bands around a flat basis. No stretch either way.

Under the lower bandBack to the basis
5Inconclusive

Back from the band to the basis

After a stretch under the lower band, price works its way back to the average.

Envelopes formulaHow it is calculated.

Basis=SMA20(close)Upper=Basis×(1+10100)Lower=Basis×(1−10100)
STEP 1

Average the closes

Take a 20-bar simple average of the close, or an EMA with Exponential on. The first value appears on bar 20.

STEP 2

Shift it up

Multiply the basis by 1.10 for the upper band.

STEP 3

Shift it down

Multiply the basis by 0.90 for the lower band.

Envelopes settingsEvery setting, explained.

SettingDefaultRangeWhat it changes
Length201 to 2,000Bars in the average.
Percent100 to 100, step 0.1How far each band sits from the basis. Traders often use much less on intraday charts.
SourceCloseAny priceWhat the average is taken of.
ExponentialOffOn or offOff gives an SMA basis, on an EMA.
LinesBasis orange #FF6D00, Upper and Lower blue #2962FF, 1 px; fill rgba(33,150,243,0.05)Any colour and widthColours of the three lines and the fill.
Setting
Length
Default
20
Range
1 to 2,000
What it changes
Bars in the average.
Setting
Percent
Default
10
Range
0 to 100, step 0.1
What it changes
How far each band sits from the basis. Traders often use much less on intraday charts.
Setting
Source
Default
Close
Range
Any price
What it changes
What the average is taken of.
Setting
Exponential
Default
Off
Range
On or off
What it changes
Off gives an SMA basis, on an EMA.
Setting
Lines
Default
Basis orange #FF6D00, Upper and Lower blue #2962FF, 1 px; fill rgba(33,150,243,0.05)
Range
Any colour and width
What it changes
Colours of the three lines and the fill.
37 band touches in view
71,06267,13963,21659,29464,803.7

Drag to see how the setting changes the lines and how many signals you get. Illustration on simulated data.

Envelopes strategiesUse it in 3 setups.

Under the lower bandBack to the basis

Back to the basis

Ifprice closes underLowertargetBasis

Mean-reversion traders treat the band as a stretch point and the basis as a target. In a strong trend price can keep walking the band instead.

Dip to a rising basis

WhileBasisrisesifprice tagsBasisand closes above

In a rising market the average is a common place to look for a pullback to end.

Hold while it walks the band

Whilecloses stay aboveBasisandhighs reachUpperhold

A band walk describes a strong trend. Traders often hold until closes drop back under the basis.

Test a rule in the Strategy TesterFree with 1 year of history. Past results do not guarantee future results.

Envelopes mistakesCommon mistakes.

Buying every close under the lower band

In a decline price can stay at the lower band for many bars. Here it kept walking down.

The 10% bands are never reached here

Keeping 10% on an hourly chart

On this hourly market the 10% bands are never reached, so they say nothing. Fit the percent to the timeframe.

No band touched

Reading basis crosses in a quiet range

In a flat range price crosses the basis back and forth. Those crosses are noise, not trend changes.

Envelopes combinationsPair it with these.

Envelopes FAQQuestions traders ask.

What are the default Envelope settings?

Length 20, Percent 10, close, with an SMA basis, the same as TradingView's Envelope.

How are the bands calculated?

At the default 10%, the upper band is the 20-bar SMA times 1.10 and the lower band the SMA times 0.90.

What percent should I use?

It depends on the market and timeframe. The bands only help when price reaches them now and then, so many traders size the percent to recent swings.

Why does this page draw 3%?

On the hourly example market price never moves 10% from its 20-bar average, so 3% shows how the bands behave. Your chart starts at 10%.

Envelopes or Bollinger Bands?

Envelopes keep a fixed distance in percent. Bollinger Bands use standard deviations, so they widen in volatile spells.

Envelopes or Keltner Channels?

Keltner Channels set their width from ATR, so they also adapt to volatility. Envelopes do not.

What does a close above the upper band mean?

Price is more than the chosen percent above its average. In a range that is a stretch; in a strong trend it can continue.

Can I use an EMA basis?

Yes. Turn on Exponential and the basis becomes a 20-bar EMA.

Do Envelopes repaint?

No. Values on closed bars never change. The live bar moves until it closes.

Do Envelopes work on crypto?

Yes. Fit the percent to the coin and timeframe: a width that suits a daily bitcoin chart is far too wide on an hourly one.

Related indicatorsMore volatility tools.

All volatility indicators

Try Envelopes on a live chart.
Free. No download.

Works in your browser and on iPhone too.

Example market1h
Envelope (20, 3%)