Envelopes (MA Envelope)
Envelopes are the plainest channel tool: a moving average ± a fixed percentage — a poke outside the band means "statistically abnormal", and the reversion-vs-breakout duality begins.
What it is
Envelopes consist of a moving average plus two fixed-percentage offsets: upper = MA × (1 + d%), lower = MA × (1 − d%) (MT5 default SMA14 ± 0.1%). The assumption is mean reversion around the average — leaving the channel is statistically extreme. It is the fixed-width ancestor of Bollinger Bands (± std-dev) and Keltner Channels (± ATR): the simplest structure, the fewest parameters.
Origin
The percentage envelope is one of the oldest channel tools — the "MA ± fixed %" idea goes back to mid-20th-century practice, popularized in the 1960s–70s (Arthur Merrill and others promoted percentage bands). It is the common ancestor of every adaptive channel that followed. MT5's default SMA14 ± 0.1% is clearly a starting point for forex/high-liquidity instruments.
Download Camovia Tray free — check quotes, manage positions, and hide in one click from your system tray.
Download FreeThe formula
The three lines:
The essential difference from Bollinger: envelope width is a fixed percentage (volatility-blind), Bollinger width is ±2 standard deviations (volatility-adaptive). So d% must be hand-calibrated per instrument — mainstream FX pairs 0.05–0.2%, volatile stocks/commodities 2–5%. The default 0.1% used on a volatile instrument degenerates into noise.
Worked example
A calibration example (why d% is yours to set):
- A major FX pair rarely moves more than 0.3% intraday — an SMA14 ± 0.1% channel gets touched 1–3 times a day: statistically meaningful.
- A growth stock averaging 3% daily moves — the same ±0.1% channel is escaped almost every bar: pure noise.
- Set d% to 5% for that stock: price mostly stays inside, and pokes outside now carry meaning.
Step one of using envelopes is calibrating d% to the instrument's volatility — rule of thumb: d% ≈ half the instrument's average move around the SMA14 window. Only a calibrated channel yields "abnormality" information.
How to read it
Reading a calibrated channel:
| Range | Common interpretation |
|---|---|
| Touch of the upper band | d% above the average — reversion read: sell reference; breakout read: strength confirmed |
| Touch of the lower band | d% below the average — reversion read: buy reference; breakout read: weakness confirmed |
| Price walking the upper band | A strong trend — "band walking"; reversion fails, ride it |
| Price walking the lower band | A weak trend — mirrored |
| The channel tilting | The middle line's direction is the trend — the channel is a sloped corridor |
Structurally identical duality to Bollinger: reversion (fade the edges in ranges) vs breakout (follow in trends) are mutually exclusive — call the regime first. The envelope's extra virtue: slope (MA direction) and width (fixed) are cleanly separated, making trend-plus-extreme reads more direct than Bollinger.
Common signals & usage
Edge reversion (range regime)
Price poking out and re-entering, trade the reversal — with a calibrated d%, win rates in ranges are respectable.
Band walking (trend regime)
Price hugging the upper band = a strong trend — do not top-pick; the first real warning is losing the middle line.
Middle-line cross
Price crossing the SMA14 — the envelope system's momentum-neutral line: more frequent and earlier than edge signals.
Dual-channel resonance
A long envelope (SMA50 ± 3%) plus a short one (SMA14 ± 1%) — price on the same side of both = multi-timeframe deviation agreement.
Limitations & common mistakes
- Defaults are never plug-and-play: 0.1% suits FX and is fiction for stocks/crypto — calibrating d% per instrument is the envelope's biggest practical hurdle.
- Fixed width is volatility-blind: during volatility shocks (earnings, central banks) the channel distorts — Bollinger adapts better on this axis.
- SMA lag: a 14-period middle reacts slowly — the channel lags turning points; pullback entries need structural confirmation.
- The walking-band temptation: in strong trends, fading the upper band is one of the fastest ways to lose — decide trend-or-range before edge trades.
- High redundancy with Bollinger: both are MA-channel systems — combined value is limited; pick one (adaptive → Bollinger, simple structure → envelopes).
Envelopes in MT5
Envelopes is a built-in MT5 trend indicator (three lines on the main chart). The MQL5 function for programmatic use is iEnvelopes:
| MQL5 function | iEnvelopes() |
| Default parameters | ma_period=14, deviation=0.1 (%) |
| Buffers | 0=upper (UPPER_LINE), 1=lower (LOWER_LINE) |
| Deviation type | double fixed percentage — volatility-blind |
| Display window | Main chart (two offset lines; mount a separate MA for the middle) |
iEnvelopes returns only the two bands (mount an identically-parameterized MA to watch the middle). deviation is a double percentage (0.1 = 0.1%) — calibrate per instrument before use. ma_shift shifts the whole channel for alignment.
Behavior across timeframes
15-minute
The high-frequency reversion field — calibrate d% to intraday volatility (FX majors ≈ 0.05–0.1%)
1-hour / 4-hour
The main period for swing reversion and band-walking calls
Daily
Where stocks/commodities get calibrated (d% often 2–5%) — trend and middle-line walks are most classic
Weekly
Long envelopes (SMA50 ± 5%+) for grand-scale overbought/oversold — coarse but sturdy
Indicator combinations
Common pairings for Envelopes:
- With ADX: ADX < 20 (range) → edge reversion; ADX > 25 (trend) → only band walks and middle-line crosses count — the regime referee. ADX
- With Bollinger Bands: Bollinger reads the volatility state (squeeze/expansion), envelopes read the fixed-deviation structure — two channels, two jobs. BOLL
- With MA: the envelope's middle is an MA — adding the channel gives every MA signal (crosses/support) an extreme-value reference for free. MA
FAQ
Q What should d% be?
No universal value — calibrate to the instrument: FX majors 0.05–0.2%, blue chips 2–3%, growth stocks/crypto 5–8%. Starting rule: d% ≈ half the instrument's average move around the SMA14 window. The test: price mostly stays inside during normal conditions, and escapes carry meaning.
Q How do Envelopes differ from Bollinger Bands?
The width mechanism: envelopes use a fixed percentage (volatility-blind); Bollinger uses ± standard deviations (volatility-adaptive). Envelopes are simpler, with slope and width cleanly separated and intuitive parameters; Bollinger adapts and its squeezes carry information. Both are MA-channel systems with high redundancy — usually pick one.
Q Why does price keep walking the upper band without pulling back?
Band walking is the signature of a strong trend: price pinned to the upper band means buyers keep pushing away from the mean — a hold signal, not a sell. Reversion logic belongs to ranges; in a trend, wait for the loss of the middle line (SMA14) before exiting.
Q Why is MT5's default 0.1% deviation so narrow?
It is a starting value designed for FX/high-liquidity instruments (major pairs rarely move more than 0.3% intraday). For stocks, commodities and crypto the width is statistically meaningless — always recalibrate the deviation parameter per instrument.
Q How do I add Envelopes in MT5?
Menu: Insert → Indicators → Trend → Envelopes, or drag it from the Navigator onto the main chart. Parameters: MA period 14, deviation 0.1 (%), SMA smoothing — adjust the deviation to your instrument's volatility before use.
Turn MT5 / MT4 into a Tray Tool
Check quotes, manage positions, and hide in one click.
Download Camovia TrayThis page is educational content about a technical indicator. It is not investment advice. Indicator signals can and do fail — always combine them with your own risk management.