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 | Trend Component

John Ehlers Trend Component Indicator.

It has three input parameters:

  • Period - calculation period;
  • Delta - factor to calculate gamma;
  • Applied price - price used for calculations.

Calculations:

Trend Component = SMA(2*Period + 1, BP)

where:

BP = 0.5*(1.0 - alpha)*(Price[0] - Price[2]) + beta*(1.0 + alpha)*BP[1] - alpha*BP[2]
alpha = gamma*SQRT(gamma*gamma - 1.0)  gamma = 1.0/COS(4.0*Pi*Delta/Period)  beta = COS(2.0*Pi/Period)  

MetaTrader Experts, Indicators, Scripts and Libraries

20878

Best MetaTrader Indicators + Profitable Expert Advisors