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 Indicator | MAE

The Moving Average Envelopes Percentage indicator shows the price as a percentage of the Envelopes channel.

There are five inputs:

  • Period - calculation period;
  • Deviation;
  • Applied price;
  • Overbought - the overbought level is set to 100% of the Envelopes channel by default;
  • Oversold - the oversold level is set to 0% (bottom edge) of the Envelopes channel by default.

Calculations:

MAE = 100 * (Applied price - DN) / (UP - DN)

where:

UP = MA * (1+Deviation / 100.0)  DN = MA * (1-Deviation / 100.0)  MA - MA(Applied price, Period)  

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 1. MAE

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 2. MAE + Envelopes

21648