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 | SineWMA

Sine Weighted Moving Average indicator is a sine-weighted moving average.

It has two configurable parameters:

  • Period - calculation period
  • Applied price

Calculation:

SineWMA = Sum / Weight

where:

Sum= Price[i-N+1] * Sin(PI*(N)/(N+1)) + Price[i-N+2] * Sin(PI*(N-1)/(N+1)) + … + Price[i] * Sin(PI*1/(N+1))
Weight = Sin(PI*(N)/(N+1)) + Sin(PI*(N-1)/(N+1)) + … + Sin(PI*1/(N+1))

MetaTrader Experts, Indicators, Scripts and Libraries

22509