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 | Simple oscillator showing the difference between two Moving Averages

A simple oscillator. Shows the difference between two exponential Moving Averages in the form of a colored histogram drawn in a separate window.

There are three adjustable parameters:

  • Period EMA - periods of moving averages;
  • Shift of the second EMA - shift for the second EMA in bars (if 0, the value of 1 is used);
  • Threshold - the threshold value. If the histogram bar value is greater than the specified value, the bar is green (default). It the bar is less than the threshold, it is shown in red. If it is within +/- Threshold, the bar is yellow.

MetaTrader Experts, Indicators, Scripts and Libraries

Fig.1 Default values.

MetaTrader Experts, Indicators, Scripts and Libraries

Fig.2 Threshold 50.

19785

Best MetaTrader Indicators + Profitable Expert Advisors