Envelopes
Indicator
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.
Price is inside the bands, -1.44% from the 20-bar SMA.
Basis 70,047 · ±3%
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.
Walking the upper band
In a strong advance the highs keep reaching the upper band while closes stay above the basis.
Walking the lower band
In a decline the lows keep reaching the lower band while closes stay under the basis.
Pullback to the basis
In an uptrend price dips to the average and closes back above it.
Quiet inside the bands
Price stays between the bands around a flat basis. No stretch either way.
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.
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.
Shift it up
Multiply the basis by 1.10 for the upper band.
Shift it down
Multiply the basis by 0.90 for the lower band.
Envelopes settingsEvery setting, explained.
| Setting | Default | Range | What it changes |
|---|---|---|---|
| Length | 20 | 1 to 2,000 | Bars in the average. |
| Percent | 10 | 0 to 100, step 0.1 | How far each band sits from the basis. Traders often use much less on intraday charts. |
| Source | Close | Any price | What the average is taken of. |
| Exponential | Off | On or off | Off gives an SMA basis, on an EMA. |
| Lines | Basis orange #FF6D00, Upper and Lower blue #2962FF, 1 px; fill rgba(33,150,243,0.05) | Any colour and width | Colours 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.
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.
Back to the basis
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
In a rising market the average is a common place to look for a pullback to end.
Hold while it walks the band
A band walk describes a strong trend. Traders often hold until closes drop back under the basis.
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.
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.
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 + Bollinger Bands
Bands that adapt to volatility, next to bands that do not.
Envelopes + RSI
RSI shows whether a band touch comes with stretched momentum.
Envelopes + ADX
ADX tells a trend, where bands get walked, from a range, where they get faded.
Envelopes + Volume
A band touch on heavy volume carries more weight.
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 indicatorsTry Envelopes on a live chart.
Free. No download.
Works in your browser and on iPhone too.