Entered close prices · SMA percentage bands

Envelopes Indicator Calculator

Calculate symmetric percentage bands around a rolling close-price simple moving average without treating a band touch as a trade signal.

Runs in your browserDeviation entered in percentNo band-touch or trade signal

Enter ordered close prices

Use completed observations from one symbol, timeframe and broker feed.

Entered

One completed close per line. Commas, semicolons or tabs are accepted.

Envelopes boundary: Version 1.0.0 uses the published close-price SMA profile with zero chart shift. It reports band arithmetic, not an overbought, oversold, reversal or entry condition.

Latest percentage envelope

Entered Trend Overlays 1.0.0.

Derived
No Envelopes values calculated yetEnter at least the selected period of ordered closes, or load the audited example.

How the Envelopes bands are calculated

Middle[i] = SMA(Close, N)
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

Reproduce it with “Load audited example”The ten-close fixture uses period 5 and deviation 1.5%, equal to 150 basis points. The latest middle SMA is 108.800000; 1.5% of it is 1.632000. The resulting upper and lower bands are 110.432000 and 107.168000, with full width 3.264000.

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

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.

XM

Review available instruments, chart history and account terms.

Check XM terms

FBS

Compare symbol specifications and chart-feed conventions for your region.

Check FBS terms

FXOpen

Confirm chart history and trading conditions for the entered symbol.

Check FXOpen terms

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.

Disclaimer: The results from this tool are estimates for educational and informational purposes only and may differ from your broker's figures. This is not financial or investment advice. Trading forex and CFDs carries a high level of risk and can result in the loss of all your capital. Always verify calculations with your broker and trade within your risk tolerance.