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 | Kalman Filter

Indicator Kalman Filter. It allows efficiently smoothing the noise, extracting the main trend from it.

Kalman Filter is a variety of recursive filters. To assess the system status as of the current operation tact, it needs a status assessment (as the system status assessment and the error assessment of defining this status) at the preceding operation tact, and measuring at the current tact. This property distinguishes it from packet filters requiring to know at the current operation tact the history of measurements and/or assessments.

More about Kalman Filter.

The indicator has three input parameters:

  • K - Kalman factor;
  • Sharpness - factor for calculating the error minimization;
  • Applied price - price used for calculations.

Calculations:

Kalman[i] = Error + Velocity[i]

where:

Error = Kalman[i-1] + Distance * ShK  Velocity[i] = Velocity[i-1] + Distance * K / 100  Distance = Price[i] - Kalman[i-1]  ShK = sqrt(Sharpness * K / 100)  

MetaTrader Experts, Indicators, Scripts and Libraries

20916

Best MetaTrader Indicators + Profitable Expert Advisors