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 | JSmooth MA

The indicator displays on the price chart a moving average with the JSmooth smoothing type (the smoothing type proposed by Mark Jurik).

The indicator has two input parameters:

  • Period - calculation period;
  • Applied price - price used for calculations.

Calculation:

JSmooth[i] = J5[i]

where

J5[i] = J5[i-1] + J4[i],  J4[i] = (J3[i] - J5[i-1])*(1 - Alpha)*(1 - Alpha) + J4[i-1]*Alpha*Alpha,  J3[i] = J1[i] + J2[i],  J2[i] = (Price[i] - J1[i])*(1 - Alpha) + J2[i-1]*Alpha,  J1[i] = Price[i]*(1 - Alpha) + J1[i-1]*Alpha,  Alpha = 0.45*Period/(0.45*(Period-1)+2)  

MetaTrader Experts, Indicators, Scripts and Libraries

20446

Best MetaTrader Indicators + Profitable Expert Advisors