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 | Choppy market index - smoothed

Choppy market index indicator (originally published here : Choppy market index) is a useful indicator but it probably lacks one thing: a bit more smoothness.

This version is addressing that issue. The method used is attempting to cut the lag to minimal (or to non-existing) and it seems to be working in an acceptable mode. Smoothing method used are the usual set of 4 average types:

  • simple moving average
  • exponential moving average
  • smoothed moving average
  • linear weighted moving average

Setting the smoothing period to <=1, sets the smoothing off.

MetaTrader Experts, Indicators, Scripts and Libraries

PS: a comparison of the smoothed (upper) and regular (lower) values. It is obvious that the smoothed version is much smoother, and that the lag is acceptable even with simple moving average used in this case for smoothing (and sma is the "slowest" average of the averages that can be used for smoothing).

MetaTrader Experts, Indicators, Scripts and Libraries

21988