Envelopes Indicator Calculator
Calculate symmetric percentage bands around a rolling close-price simple moving average without treating a band touch as a trade signal.
Enter ordered close prices
Use completed observations from one symbol, timeframe and broker feed.
One completed close per line. Commas, semicolons or tabs are accepted.
Latest percentage envelope
Entered Trend Overlays 1.0.0.
| Label | Index | Close | Middle SMA | Upper | Lower |
|---|
How the Envelopes bands are calculated
Upper[i] = Middle[i] × (1 + Deviation% ÷ 100)
Lower[i] = Middle[i] × (1 − Deviation% ÷ 100)
Version 1.0.0 uses the close-price simple-moving-average formula published in MetaTrader Help. The first value appears after N entered closes.
The MQL5 interface describes deviation in percent. The page also converts that input to basis points for clarity: one percent equals 100 basis points.
Assumptions and limits
- At least N ordered close prices are required and N must be between 2 and 200.
- Deviation must be greater than zero and less than 100 percent.
- Rows must be oldest to newest and use one symbol, timeframe and feed.
- This profile fixes applied price to close, smoothing to SMA and horizontal chart shift to zero.
- Band touches, volatility labels, reversals, entries and exits are withheld.
Worked example from the audited fixture
How to interpret the result
The bands are fixed-percentage distances from the entered close-price SMA. Their width changes with both the middle value and chosen deviation. A price touching either band would not, by itself, establish a reversal or entry.
Frequently asked questions
- Enter a period, a deviation in percent and at least N ordered close prices from one symbol, timeframe and feed.
- Version 1.0.0 uses the simple average of the latest N entered closes.
- The middle SMA is multiplied by one plus or minus the entered percent divided by 100.
- The MQL5 interface states deviation in percent; converting one percent to 100 basis points makes the unit explicit.
- This governed profile fixes smoothing to SMA, applied price to close and horizontal chart shift to zero.
- Envelopes use a fixed percentage of the moving average; Bollinger Bands use standard-deviation multiples.
- Only when the same closes, period, percent deviation, SMA method, zero shift and history window are used.
- No. The page does not classify overbought, oversold, reversal, trend, entries or exits.
Sources and methodology
- MetaTrader 5 Help — Envelopes — Official close-price SMA and symmetric-band formula.
- MQL5 Reference — iEnvelopes — Official period, smoothing, applied-price, shift and percent-deviation interface.
- MetaTrader 5 Help — Moving Average — Official simple moving-average definition.
Continue entered indicator analysis
Compare the chart feed and trading terms
Use one broker feed, symbol and timeframe for every entered observation, and compare the source history with your terminal before relying on a platform match.
Risk and affiliate disclosure: Leveraged forex and CFD trading can result in substantial losses. These are affiliate links, so ForexMT4Indicators.com may receive compensation if you register or trade through them, at no additional cost to you. Availability and terms vary by jurisdiction and broker entity.

