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 5 Indicators | Envelopes | Free Download

RobotFX curates the best open-source MetaTrader code to inspire your trading automation.

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.

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 ® (BB).

Reduce lag and improve accuracy with the NonLagMA Expert Advisor for MT4/MT5. Discover it.

Envelopes indicator

Envelopes indicator

Calculation:

UPPER BAND = SMA (CLOSE, N) * [1 + K / 1000]
LOWER BAND = SMA (CLOSE, N) * [1 - K / 1000]

where:

  • UPPER BAND - upper line of the indicator;
  • LOWER BAND - lower line of the indicator;
  • SMA - Simple Moving Average;
  • CLOSE - close price;
  • N - period of averaging;
  • K / 1000 - the value of shifting from the average (measured in basis points).

Complement community code with advanced automation from RobotFX.

28

Best MetaTrader Indicators + Profitable Expert Advisors