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 | EMA variation

Theory :

Exponential moving average (EMA) is one of the most used ways of smoothing / filtering data. By its nature it is a first-order infinite impulse response filter that applies weighting factors which decrease exponentially. The weighting for each older data decreases exponentially, never reaching zero. Because of one characteristic that is less know (it depends only on a previous data - no older data needed for calculation) it is perfect for all sorts of adjustments / combinations / variations (most of the adaptive averages are calculated using some sort of ema)

This version :

It is doing 2 things :

  • it is adding "speed" (the higher the "speed" the "faster" the ema - without changing the ema period). Speed can be set as fractional value
  • it is adding implicit smoothing - hence the same period ema is less smooth that this indicator even when they are producing similar values (the values can never be exactly the same)

Usage :

You can use it as any average type indicator

MetaTrader Experts, Indicators, Scripts and Libraries

Comparison of this indicator ("speed" set to 1.8 which produces results similar to "regular" ema) and regular ema (gray line). As it can be seen, the slope of this one is smoother

MetaTrader Experts, Indicators, Scripts and Libraries

23408