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_With_Trend_Adjustment

EMA_With_Trend_Adjustment - a moving average with exponential smoothing and correction by its trend component.

The indicator has four configured parameters:

  • Alpha - coefficient to calculate EMA;
  • Beta - coefficient to calculate the trend component;
  • Use Trend Adjustment - whether to use correction by trend (Yes/No);
  • Applied price - price used for calculations.

Calculations:

EMATA = Alpha * Price + (1-Alpha) * (PrevEMATA + Trend)  Trend = Beta * (EMATA - PrevEMATA) + (1 - Beta) * PrevTrend  

where:

Price - SMA(1, Applied price)

MetaTrader Experts, Indicators, Scripts and Libraries

Fig 1. Trend component is not used.

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 2. Trend component is used.

21232

Best MetaTrader Indicators + Profitable Expert Advisors