Trading Education

Envelopes indicator: how to size and trade MA envelopes

The Envelopes indicator wraps a moving average in fixed-percent bands. Learn how to size the gap per pair, when a touch is a trade back to the average, and when it means trend.

In this guide
  1. What is the Envelopes indicator?
  2. Why do fixed-percent bands behave differently from volatility bands?
  3. How do you size the envelope deviation for your pair?
  4. When is a rail touch a reversal trade and when is it a trend?
  5. Does the Envelopes indicator repaint?
  6. Where RelicusRoad Pro fits
  7. Frequently asked questions

Price tags the upper envelope, you sell, and it keeps walking up the rail for another eight candles. The Envelopes indicator did what it was built to do: it showed price stretched a fixed distance from its average. It never said the stretch would snap back.

This guide covers how the fixed-percent bands work, how to size the deviation for the pair you trade, and the one check that separates a reversal setup from a trend you should leave alone.

Key Findings

  • Fixed width by design: Envelopes sit a constant percentage above and below a moving average, so the gap follows price level and ignores volatility.
  • Tuning is your job: the deviation must be set by hand per pair and timeframe, then rechecked when the market's pace shifts.
  • Slope decides the meaning of a touch: with a flat average a rail touch is a possible reversal trade; with a sloped average it usually marks trend pressure.
  • Wait for the close: closed-bar values stay fixed, but the live candle's rails move tick by tick, so touch rules belong on completed candles.

What is the Envelopes indicator?

The Envelopes indicator is a moving average plus two shifted copies of it, one a set percentage above and one the same percentage below. It marks how far price has stretched from its recent average. The rails move with the average, but the gap between them stays proportional to price and never reacts to volatility.

On MetaTrader 4 it is a built-in trend tool with four inputs: the averaging period, the averaging method (simple, exponential, smoothed, or linear weighted), the price it is applied to, and the deviation. The MetaTrader 4 Envelopes help page describes the rails as the average moved up and down by that deviation, expressed as a percentage. MT5 carries the same tool, and TradingView offers an equivalent built-in.

The idea is older than the platforms. John Bollinger, in Bollinger on Bollinger Bands (McGraw-Hill, 2001), describes fixed-percentage bands as the tool traders used before he moved to bands that adapt to volatility. That history explains both the tool’s charm and its weakness.

Why do fixed-percent bands behave differently from volatility bands?

Fixed bands do not breathe. A Bollinger Band or a Keltner Channel widens when candles get bigger and tightens when they shrink. An envelope keeps the same gap in quiet sessions and in a news spike, so the share of candles closing outside it changes with the market’s mood. With volatility bands you can even track a close’s position as one number, which is what the %B oscillator built on Bollinger Bands plots.

One envelope width in a calm and a volatile marketCalm marketprice stays insideVolatile marketprice keeps breaking out

Same rails, two markets. In the left panel a rail touch is rare and worth noticing; in the right panel touches happen every few bars and carry almost no information.

That rigidity has one upside. Because the width stays put, a real expansion in range is obvious the moment price starts closing outside rails that did not move to make room. A self-adjusting band hides some of that change by widening with it.

BandHow width is setAdapts to volatility?Best use
EnvelopesFixed percentage of the averageNoStable ranges, spotting a change of pace
Bollinger BandsStandard deviations of recent closesYesSqueezes and volatility cycles
Keltner ChannelMultiple of average true rangeYes, more smoothlyTrend pullbacks and channel rides
Donchian ChannelHighest high and lowest low over a lookbackFollows range extremesBreakouts of prior highs and lows
Envelopes
How width is set
Fixed percentage of the average
Adapts to volatility?
No
Best use
Stable ranges, spotting a change of pace
Bollinger Bands
How width is set
Standard deviations of recent closes
Adapts to volatility?
Yes
Best use
Squeezes and volatility cycles
Keltner Channel
How width is set
Multiple of average true range
Adapts to volatility?
Yes, more smoothly
Best use
Trend pullbacks and channel rides
Donchian Channel
How width is set
Highest high and lowest low over a lookback
Adapts to volatility?
Follows range extremes
Best use
Breakouts of prior highs and lows

If you want width that tracks volatility, the Keltner Channel guide covers the ATR-based version, and the Bollinger squeeze setup shows what a standard-deviation band does when it compresses.

How do you size the envelope deviation for your pair?

Size the deviation so price closes outside the rails only occasionally on the history you care about. Too narrow, and every other candle is a signal. Too wide, and the rails never come into play. The right width is a property of the pair and the timeframe, not a universal number.

A practical calibration run looks like this:

  1. Pick the average first. A simple or exponential average of the period you already watch keeps the centre line familiar.
  2. Scroll back a few months on your trading timeframe and count candles that close outside the rails.
  3. Widen or tighten the deviation until those closes cluster at swing extremes you would have wanted to act on.
  4. Repeat the count on a different month. If the setting only fits one stretch of history, it is fitted to noise.
Calibration checkIf the rails that fitted last quarter now get pierced every session, the market's pace has changed. Retune the deviation before you trust another touch.

Expect different settings across pairs. A quiet major on an hourly chart and a volatile cross or gold on a daily chart can need widths that differ by a wide margin. If you trade a basket, keep a short note of each pair’s deviation so you are not guessing from memory.

When is a rail touch a reversal trade and when is it a trend?

Look at the slope of the centre average before anything else. A flat average means price is rotating, and the rails mark the edges of that rotation. A sloped average with price hugging one rail means buyers or sellers are in control, and a touch is trend pressure, not an overshoot.

Deciding what an envelope touch meansClosed candle at a railIs the average flat?flatslopedPossible reversal tradestop beyond the railTrend pressureno counter-trade

The flowchart has one fork because the slope question does most of the work. Everything after it is about risk.

On the reversal branch, the stop belongs beyond the rail and the touching candle’s extreme, and the natural first target is the centre average. On the trend branch, the envelope still helps. Pullbacks toward the average in a sloped envelope are where trend traders look for continuation, which is closer to how a moving average crossover plan treats the same line.

Where this costs youSelling every upper-rail touch in a rising market turns a mean-reversion tool into a steady series of stop-outs against the trend.

Does the Envelopes indicator repaint?

Closed bars stay fixed. Each rail is the moving average of completed prices multiplied by a constant, so once a candle closes its envelope values do not change. The live candle is the exception, because the average and both rails recalculate on every tick until the bar finishes.

That is why a mid-candle touch can vanish by the close. The forward or backward shift input on MetaTrader moves where the lines are drawn in bars, which can make a chart look cleaner than it traded, so leave it at zero while testing. For the full test of what counts as a genuine redraw, see what non-repaint means for a forex indicator.

Where RelicusRoad Pro fits

An envelope tells you price is stretched. It says nothing about whether a level nearby is likely to hold, and it needs hand-tuning each time the market changes pace. RelicusRoad Pro adds structure around that stretch: levels and confirmations that lock at the candle close on MT4, MT5, and TradingView. Use it to decide whether a rail touch lines up with a level strong enough to trade a reversal from, and keep your risk per trade fixed either way.

Frequently asked questions

What is the Envelopes indicator?

The Envelopes indicator is a moving average with two copies of it shifted up and down by a fixed percentage. If the average reads 1.1000 and the deviation is set to a small percentage, the upper rail sits that percentage above 1.1000 and the lower rail the same distance below. It ships as a built-in tool on MetaTrader 4 and MetaTrader 5, and similar percentage bands are available on TradingView. Traders use it to mark stretched prices relative to an average and to judge whether price is riding one side of the average or rotating around it.

What is the best deviation setting for the Envelopes indicator?

There is no single best deviation, because the right width depends on how far the pair normally travels on your timeframe. A useful starting rule is to widen the deviation until price closes outside the rails only a handful of times across a few months of history, then check that the rails still sit near swing highs and lows you would have cared about. A slow major on a one-hour chart needs a far narrower setting than a volatile cross or gold on a daily chart. Recheck the setting when the market’s pace changes.

How is the Envelopes indicator different from Bollinger Bands?

Envelopes keep a constant percentage distance from the average, so their width only changes when price level changes. Bollinger Bands are placed a number of standard deviations away from the average, so they widen when price becomes volatile and tighten when it goes quiet. That makes Bollinger Bands self-adjusting, while Envelopes need manual tuning. The upside of a fixed width is readability, since it makes a genuine volatility expansion obvious, because price starts closing outside a band that did not move to accommodate it.

Does the Envelopes indicator repaint?

A standard Envelopes indicator does not rewrite closed bars. Each rail is the moving average of completed closes multiplied by a fixed factor, so once a candle closes its envelope values are fixed. The live candle is different, because the average and both rails recalculate with every tick until the close. A rail touch seen mid-candle can disappear by the close. Some builds also let you shift the envelope forward or backward in bars, which changes where the lines are drawn but does not rewrite past values.

Should I trade against every touch of the upper or lower envelope?

No. Trading rail touches back toward the average works when the centre average is flat and price is rotating, because the rails then mark the edges of a range. When the average is sloping and price keeps closing near or beyond one rail, those touches describe trend pressure, and betting on a reversal there means trading against the move. Check the slope of the average first, confirm the touch on a closed candle, and set the stop beyond the rail before you consider a reversal trade.


Want your envelope touches checked against levels that lock at the close? See how RelicusRoad Pro marks them.

Written for RelicusRoad by RelicusDigital.com.

Share:
Trading Indicators

Keep going on this topic

Start with the main guide

The Best Trading Indicators for MT4, MT5 and TradingView in 2026

An honest breakdown of trading indicators for MT4, MT5 and TradingView: which categories add real edge, which are noise, and how many you actually need.

Tools for this topic

Standalone MetaTrader indicators that draw what this article talks about.

All tools