Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

Metatrader 4 Indicators | Envelopes | Source Code Included

Explore the latest free tools from the MQL5 community. Here's a new indicator, expert advisor, or script for MetaTrader.

Envelopes technical indicator is formed with two Moving Averages one of which is shifted upward and another one is shifted downward.

The selection of optimum relative number of band margins shifting is determined with the market volatility: the higher the latter is, the stronger the shift is.

Envelopes define the upper and the lower margins of the price range. Signal to sell appears when the price reaches the upper margin of the band; signal to buy appears when the price reaches the lower margin.

Recover from drawdowns intelligently with the Auto Recovery Expert Advisor for MT4/MT5. Perfect for hedging strategies. Learn more.

The logic behind envelopes is that overzealous buyers and sellers push the price to the extremes (i.e., the upper and lower bands), at which point the prices often stabilize by moving to more realistic levels. This is similar to the interpretation of Bollinger Bands.

Calculation

Upper Band = SMA(CLOSE, N)*[1+K/1000]

Lower Band = SMA(CLOSE, N)*[1-K/1000]

where:

  • SMA — Simple Moving Average;
  • N — averaging period;
  • K/1000 — the value of shifting from the average (measured in basis points).

Envelopes technical indicator

Full description of Envelopes is available in the Technical analysis: Envelopes

Build better strategies with RobotFX professional tools – check them out.

7975

Best MetaTrader Indicators + Profitable Expert Advisors