Hull moving average – indicator for MetaTrader 4

Hull moving average – indicator for MetaTrader 4


By definition :

By Alan Hull

Back in 2005 when I was working on a new indicator I was temporarily sidetracked by trying to solve the problem of lag in moving averages, the outcome of which was the Hull Moving Average.

Since then the HMA has found its way into charting programs around the world and is regularly discussed on traders bulletin boards in different languages around the world. It was the result of an intellectual curiosity which I placed into the public domain by writing the following article Alan Hul Hull Moving Average.

The Hull Moving Average solves the age old dilemma of making a moving average more responsive to current price activity whilst maintaining curve smoothness. In fact the HMA almost eliminates lag altogether and manages to improve smoothing at the same time.

To understand how it achieves both of these opposing outcomes simultaneously we need to start with an easily understood frame of reference. The following chart contains a 16 week simple moving average which constantly lags the price activity and has poor smoothness.

Hull Moving Average (HMA) formula

Integer(SquareRoot(Period)) WMA [2 x Integer(Period/2) WMA(Price) – Period WMA(Price)]

There are multiple reasons for posting this indicator into metatrader 4 code base :

  • the eternal “need for speed” cause : Hull average is (regardless how it is calculated) a CPU intensive calculation. This version is solving that by avoiding loops where they usually are used
  • this version is the variation that allows you to specify the “speed” of the Hull average and thus to adjust the Hull (that tends to be overshooting in its original form) to our needs
  • there are countless versions of Hull average, using countless names, that are showing the two colored line – and a lot of them are repainting. This one is a non-repainting version

MT4 Indicators – Download Instructions

Hull moving average is a Metatrader 4 (MT4) indicator and the essence of the forex indicator is to transform the accumulated history data.Subway provides for an opportunity to detect various peculiarities and patterns in price dynamics which are invisible to the naked eye.

Based on this information, traders can assume further price movement and adjust their strategy accordingly.

How to install the software?

  • Download the mq4 file from the zip file.
  • Copy the mq4 file to your Metatrader Directory / experts / indicators /
  • Start or restart your Metatrader Client
  • Select Chart and Timeframe where you want to test your indicator
  • Search “Custom Indicators” in your Navigator mostly left in your Metatrader Client
  • Right click on the mq4 file.
  • Attach to a chart
  • Modify settings or press ok
  • Indicator should be available on your Chart

How to remove tim.mq4 from your Metatrader 4 Chart?

  • Select the Chart where is the Indicator running in your Metatrader Client
  • Right click into the Chart
  • “Indicators list”
  • Select the Indicator and delete

MT4 Indicators Download below:

Hull moving average – indicator for MetaTrader 4