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 | Nonlinear Kalman filter - floating levels

Theory :

John Ehlers describes what he calls the nonlinear Kalman filter in the following way :

  • Take EMA of price (better, a 3 Pole filter).
  • Take the difference (delta) between Price and its EMA.
  • Take an EMA of delta (or a 3 Pole filter):
    • Smoothing will help reduce whipsaws.
    • Ideally, smoothing introduces no major trend mode lag because delta is detrended.
  • Add the smoothed delta to EMA for a zero lag curve.
  • Add 2*(smoothed delta) to EMA for a smoother predictive line.

In order to add signals other than simple slope direction change, in this version you can chose 3 types of color changes :

  • color change on slope
  • color change on outer (floating) levels cross
  • color change on middle (floating) level (sort of a "zero line") cross

Usage :

You can use the color changes as signals

MetaTrader Experts, Indicators, Scripts and Libraries

24031