Moving Average Envelopes: How to Set the Width and Actually Use Them
Moving Average Envelopes
Almost every charting platform ships with a moving average envelope, and almost nobody uses the default setting well. You drop the indicator on the chart, it draws two lines 2% above and 2% below a 20-period moving average, and on most charts those lines either sit so close to price that they are touched every second bar, or so far away that they are never touched at all. The tool gets a shrug and gets deleted.
That is a shame, because the envelope is one of the few indicators where the trader — not the formula — decides what the tool measures. That sounds like a weakness. It is actually the whole point, and it is what makes an envelope tell you something a Bollinger Band structurally cannot.
This article is part of the Moving Averages guide. It assumes you already know how a moving average is built; if not, start with SMA vs EMA vs WMA and come back.
1. What a moving average envelope actually is
The construction has no mystery to it:
Upper band = MA × (1 + k)
Lower band = MA × (1 − k)
where MA is a moving average of your choosing and k is a percentage you pick. A 20-period simple moving average with k = 3% gives you an upper band 3% above the average and a lower band 3% below it.
Some platforms let you set the offset in points or in average true range units instead of percent. Percent is the version worth using, because a percentage stays comparable as price levels change. Two dollars is a wide band on a $20 stock and a rounding error on a $2,000 one; 3% is 3% at both.
That is the entire indicator. There is no smoothing, no second calculation, no hidden parameter. Which means everything that matters about an envelope comes down to two decisions: which average you centre it on, and how wide you set k.
2. The distinction that most articles get wrong
You will read constantly that envelopes are “like Bollinger Bands but simpler.” That framing throws away the only thing that makes envelopes worth having.
A Bollinger Band sets its width from standard deviation — the market’s own recent volatility. When volatility rises, the bands widen. When it falls, they contract. The result is a band that is self-normalising: it is always roughly the same distance from price in volatility-adjusted terms, so a touch of the upper band means approximately the same thing in a quiet January and a violent October.
An envelope is fixed. You set k at 3% and it stays 3% whether the market is dead or on fire.
This is exactly what makes it useful. Because the yardstick does not move, the frequency of touches becomes information. If price touched your 3% band four times last quarter and touches it fourteen times this quarter, the market has changed regime — and the envelope told you that. A Bollinger Band, by design, absorbs that change into its own width and never reports it. It normalises away the very thing you might want to see.
So the two tools answer different questions:
- Bollinger Bands: is this move unusual relative to current conditions?
- Envelopes: is this move unusual in absolute terms, and have conditions themselves shifted?
Neither is superior. They are different instruments. Use a fixed rule when you want a stable reference; use an adaptive rule when you want a conditional one.
Moving Average Envelopes

3. Moving Average Envelopes – Why the default 2% is wrong for your chart
The 2% and 5% defaults in charting software are legacy values from equity charts of a different era. They were never universal, and they were never meant to be.
The width you need depends on three things: the volatility of the instrument, the timeframe of the chart, and the period of the centre average. A 3% envelope on a daily EUR/USD chart will almost never be touched — major currency pairs simply do not travel that far from a 20-day average in normal conditions. The same 3% on a daily small-cap biotech chart will be touched constantly. Copying a setting from an article about a different market is how the indicator gets its bad reputation.
Fitting the percentage properly
There is a straightforward, honest way to do this, and it takes about ten minutes.
- Choose your centre average first and put it on the chart.
- Decide what a “touch” should mean to you. If you want the bands to mark genuinely stretched conditions, aim for roughly 85–90% of closes to fall inside the envelope. If you want a channel that price rides most of the time, aim closer to 95%.
- Measure the actual deviation. For each bar, compute (Close − MA) ÷ MA as a percentage. You now have a distribution of how far this market strays from its own average.
- Read the percentile off that distribution. The value at your chosen containment level is your k. If 90% of closes sit within 2.4% of the 20-day average, set k = 2.4%, not 2%.
- Re-check quarterly, not daily. The point of a fixed band is that it stays fixed long enough to reveal change. If you re-fit it every week, you have built a slow, badly-specified Bollinger Band.
If you cannot run the calculation, a workable shortcut is to widen the band until only the genuinely extended moves of the last year poke through.
The important discipline is that you fit it once, then leave it alone. A band you keep adjusting to fit recent price is not a measurement, it is a drawing.
Moving Average Envelopes

4. Moving Average Envelopes – Choosing the centre line
The centre line does more work than most traders realise, because it determines what the bands are measuring deviation from.
Length. A short average (10–20) hugs price, so the envelope measures short-term stretch and gets touched often. A long average (50–200) sits well behind price, so the envelope measures larger displacement and is touched rarely. Match the length to the horizon you actually trade. A swing trader working three-to-ten day holds is generally well served by a 20-period centre; a position trader may want 50.
SMA or EMA. For envelopes specifically, the simple moving average has a real advantage: it is stable. An EMA reacts quickly to a fast move, which drags the whole envelope toward the price spike and shrinks the apparent deviation exactly when the deviation is the thing you wanted to measure. The average chases the outlier and reports it as smaller than it was. If you are building a deviation tool, a stable centre is worth more than a responsive one. This is the opposite of the trade-off you make when using an average as a trend filter.
One centre, one envelope. Resist the temptation to stack three envelopes at different widths on one chart. You end up reading the picture instead of the level. If you want a multi-average visual, that is what a moving average ribbon is for, and it answers a different question.
5. Moving Average Envelopes – Three legitimate ways to use them
Envelopes get sold as an overbought/oversold tool. That is one use of three, and on its own it is the one most likely to lose money.
A. Mean-reversion fades — only in a confirmed range
When the centre average is flat and price is oscillating around it, a touch of the outer band marks a stretched condition with a reasonable statistical case for reversion. The trade is a fade back toward the centre line, not toward the opposite band.
The non-negotiable condition is that the centre average must be flat. If it is sloping, you are fading a trend, and fading a trend at an arbitrary fixed distance is how accounts die.
B. Trend continuation — price “walking the band”
In a strong trend, price does not touch the band and reverse. It touches, pulls back a little, and touches again — repeatedly, for weeks. This is called walking the band, and it is the exact opposite signal to the one in (A). The same event means different things in different regimes, which is why regime identification has to come first.
Traded properly, the walk is not an entry at the band. It is an entry on the shallow pullback between touches, with the centre average acting as the invalidation level.
C. Volatility regime tracking — the underrated one
Count the touches. Keep a simple tally of how many times price closed outside your fixed envelope each month. That series is a clean, unadorned volatility record for the instrument, and because the band is fixed it is directly comparable across time.
A month with triple the usual touch count is telling you position sizes should come down and stop distances should go up, regardless of what your entry signals say. This use of the envelope has nothing to do with entries at all, and it is arguably the most valuable thing the indicator does.
6. Moving Average Envelopes – What an envelope cannot do
It does not forecast. A band touch is a description of where price is relative to its own recent average. It contains no information about what happens next. The reversion case in a range comes from the range, not from the band.
The touches are not independent. Volatility clusters. A band touch is far more likely to be followed by another band touch than a random bar is, which means a “1-in-10 event” band gets touched in bunches, not evenly spaced. Any expectation built on assuming independent touches will be wrong.
It has no memory of structure. The envelope will happily place a lower band in the middle of nothing while a genuine horizontal support level sits 0.8% below. The horizontal level has trapped inventory behind it. The band has arithmetic. When they conflict, trust the structure.
Both bands can be wrong at once. In a gap or a news shock, price opens outside the envelope and the indicator has nothing useful to say until the average catches up — which, with a 20-period SMA, takes about ten bars.

7. Moving Average Envelopes – A workable starting grid
Fit your own numbers using Section 3. These are starting points to fit from, not settings to adopt:
- Major FX pairs, daily: 20 SMA centre, k around 1.0–1.5%
- Large-cap equities, daily: 20 SMA centre, k around 3–4%
- Small-cap equities, daily: 20 SMA centre, k around 6–9%
- Gold, daily: 20 SMA centre, k around 2.5–3.5%
- Index futures, 60-minute: 20 SMA centre, k around 0.5–0.8%
- Crude oil, daily: 20 SMA centre, k around 4–6%
Volatility regimes shift; these ranges will drift over the years. Re-fit rather than trusting a list — including this one.
8. Common mistakes
- Using the platform default and blaming the indicator. The default is a placeholder.
- Fading every touch. Touches in a trend are continuation, not exhaustion.
- Re-fitting the width constantly. That converts a measurement tool into a lagging, poorly-built volatility band.
- Using an EMA centre for deviation work. The centre chases the spike and understates the stretch.
- Reading a touch as a signal on its own. It is a condition. The signal is what price does after the touch.
- Ignoring the touch count. The most useful output of a fixed envelope is the one most traders never look at.
Moving Average Envelopes FAQ
What is a moving average envelope?
Two lines drawn a fixed percentage above and below a moving average. The upper band is the average multiplied by (1 + k) and the lower band is the average multiplied by (1 − k), where k is a percentage the trader chooses.
What is the best setting for moving average envelopes?
There is no universal setting. The width should be fitted to the instrument and timeframe so that roughly 85–90% of closes fall inside the bands. On daily charts, that typically means around 1–1.5% for major currency pairs and 3–4% for large-cap equities, but you should measure it on your own chart rather than copying a number.
What is the difference between moving average envelopes and Bollinger Bands?
Bollinger Bands set their width from standard deviation, so they widen and narrow with market volatility. Envelopes use a fixed percentage that does not change. That makes Bollinger Bands better for judging whether a move is unusual relative to current conditions, and envelopes better for detecting when conditions themselves have changed.
Should I use an SMA or EMA as the centre line?
An SMA is generally better for envelopes. An EMA reacts quickly to sharp moves, pulling the whole envelope toward the spike and understating the deviation you were trying to measure.
Does a band touch mean the market is overbought?
Only in a range. When the centre average is flat, a touch marks a stretched condition with a reasonable case for reversion. When the average is sloping, repeated touches are a sign of trend strength, not exhaustion.
Can envelopes be used on their own?
No. They describe where price sits relative to its average; they say nothing about trend direction or market structure. They need a trend filter and awareness of horizontal levels to be traded sensibly.


Add comment