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 | Auto_Envelope

Auto Envelope is an envelope indicator that automatically changes the channel size calculating the standard deviation for the last 100 bars. It is designed to change the value no more than once a week, which makes it suitable even for intraday data.

It has four inputs:

  • MA period - moving average calculation period
  • MA method - moving average calculation method
  • Deviation factor - standard deviation ratio
  • Deviation period - standard deviation calculation period

Calculation:

Central = MA Top = Central + Channel / 2.0 Bottom = Central - Channel / 2.0

where:

Channel = StdDev * Deviation factor * Central / 10.0 StdDev - StdDev(Raw, Deviation period) Raw = 2.0 * Max(Abs(High-MA), Abs(Low-MA)) / MA MA - MA(Close, MA period, MA method)

MetaTrader Experts, Indicators, Scripts and Libraries

22184