Set an MT5 Envelope width in percent

Set an MT5 Envelope width in percent

Read the settings in their own units

In Envelopes choose the moving-average method, period, applied price and deviation. Set horizontal shift to zero for this check. The deviation field is expressed in percent. A value of 0.5 describes half a percent of the moving average on either side.

Measure one cross-section

With a moving average of 200 and deviation of 0.5 percent, the upper band is 201 and the lower is 199. The full width is 2 price units, twice the distance to either side. Divide the upper distance by the average if you want to recover the setting from the Data Window.

Upper = MA × 1.005   ·   Lower = MA × 0.995

Double the centre

At a moving average of 400 the same setting gives bands of 402 and 398. The absolute distance doubled without any change in the deviation input. Conversely two windows can have similar averages and very different volatility yet produce the same envelope width.

Check a real discrepancy

Add a moving average with identical settings to the same chart. Cursor over a closed candle and record its value alongside both bands. If the midpoint does not match, first check the applied price, averaging method and shift. If the midpoint matches, check whether the worksheet used 0.5 as a multiplier instead of dividing it by 100.

Sources and further reading

Back to top

MQLume Bespoke

Built around your ambition.

Explore bespoke services →

Have something more specific in mind?

Ask us about advanced custom development. Share your requirements through private support or email; we will discuss the scope and quote separately.

100% committed to following up on your delivery and support requests.

Free downloads. Real source files.

FREE

Lizard [MQLume]

MQL5 / MT5Version v2.21

Free editable gold breakout project with six independently selectable cores, session filters and flexible position sizing.

US$149.00FREE
FREE

Scraper Gold [MQLume]

MQL5 / MT5Version v3.80

Free editable source with compiled EX5: four gold breakout engines with independent profiles, sizing, direction and exits.

US$95.00FREE
FREE

EA Black Dragon [MQLume]

MQL5 / MT5Version v13.0

Trend-based entries with optional grid additions, side controls and virtual exits.

US$30.00FREE
FREE

Hamster Scalping [MQLume]

MQL5 / MT5Version v21.0

RSI entries with two ATR filters, configurable sessions and optional grid management.

US$30.00FREE
MQLume

More to explore. A community to share it with.

Stay close to MQLume, wherever you like to learn.

YouTube

See our EAs in action. Explore backtests, walkthroughs and practical guides.

Watch on YouTube

Telegram

Meet other EA users, share ideas and keep up with what’s new.

Join the community Follow official updates

Cart

One personal-use licence per project. Each project can be added once.

Your cart is waiting for its first passenger.

Choose an EA or source edition to get started.

Continue shopping