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 | FIR filter

The indicator shows moving average, calculated using the digital filter. In this example the Hann Window is used.

You can use the other filter coefficients, just modify them in OnInit():

   for(int k=0;k<Per;k++)
   {
      w[k]=0.5-0.5*MathCos(2.*pi*(k+1)/(Per+1));
      wsum+=w[k];
   }

MetaTrader Experts, Indicators, Scripts and Libraries

120

Best MetaTrader Indicators + Profitable Expert Advisors