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

Channel indicator HWC (Holt-Winters Channel) based on HWMA - a three-parameter moving average calculated by the method of Holt-Winters.

It has six input parameters:

  • nA - parameter of the equation that describes a smoothed series (from 0 to 1);
  • nB - parameter of the equation to assess the trend (from 0 to 1);
  • nC - parameter of the equation to assess seasonality (from 0 to 1);
  • nD - parameter of the channel equation (from 0 to 1);
  • Multiplier - multiplier for the width of the channel calculated;
  • Applied price - price used for calculations.

Calculations:

Top = HWMA + Multiplier * StDt  Bottom = HWMA - Multiplier * StDt  

where:

HWMA - Holt-Winter Moving Average

StDt[i] = Sqrt(Var[i-1])  Var[i] = (1-d) * Var[i-1] + nD * (Price[i-1] - HWMA[i-1]) * (Price[i-1] - HWMA[i-1])  

MetaTrader Experts, Indicators, Scripts and Libraries

20857

Best MetaTrader Indicators + Profitable Expert Advisors