Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Views:
3378
Rating:
(7)
Published:
2018.06.18 13:56
HWC.mq5 (12.15 KB) view
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

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])

Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/20857

HWMA HWMA

Indicator HWMA (Holt-Winter Moving Average) is a three-parameter moving average by the Holt-Winter method.

Divergence_Candles Divergence_Candles

Indicator of candlestick divergences.

Intraday_Intensity_Index Intraday_Intensity_Index

Intraday Intensity Index.

MACD_Squeeze MACD_Squeeze

Oscillator MACD Squeeze similar to indicator Trade The Markets Squeeze, but based on MACD.