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





Download Hull moving average - indicator for MetaTrader 4




Related News




Latest News
Stocks: Home Depot, Kohls, Energy Shares Weigh on Market
19.11.2019 22:24
Investing.com – Stocks struggled to keep the big rally moving Tuesday, but weakness in retail stocks pulled the Dow lower and kept the S&P 500 in check. The S&P 500 hit a new intraday high but just missed a new record close and sixth straight gain. The NASDAQ Composite and Nasdaq 100 indexes did close at record levels and hit new
Read more
Day Ahead: Top 3 Things to Watch
19.11.2019 22:21
Investing.com - Here's a preview of the top 3 things that could rock markets tomorrow. 1. Fed's Minutes in Focus The Federal Reserve on Wednesday at 2 pm ET (19:00 GMT) will release the minutes of its October 29-30 Federal Open Market Committee (FOMC) meeting. At its October meeting, the FOMC cut interest rates, but expectations for
Read more
OxyContin maker Purdue Pharma to pay states' lawyers, urged to help victims
19.11.2019 22:18
By Tom Hals (Reuters) - OxyContin maker Purdue Pharma LP got court approval on Tuesday to reimburse millions of dollars in legal fees for states that back its proposed $10 billion settlement of opioid lawsuits, but with a condition meant to help victims of the addiction crisis. Purdue had told Bankruptcy Judge Robert Drain at Tuesday's
Read more
Australia to fast-track $2.6 billion worth of infrastructure spending in bid to revive economy
19.11.2019 22:15
By Colin Packham SYDNEY (Reuters) - Australia's conservative government will fast-track A$3.8 billion ($2.59 billion) in infrastructure spending, Prime Minister Scott Morrison said on Wednesday - a fillip to a stalling economy. Australia's economic growth has slumped to its lowest in a decade, led by weakness in consumer spending and
Read more
Conoco Plans Share Buyback That’s Almost 50% of Market Value
19.11.2019 22:12
(Bloomberg) -- ConocoPhillips (NYSE:COP) announced a 10-year plan to buy back $30 billion of shares, equivalent to about half of its current market capitalization, as the oil producer attempts to distance itself from the troubled U.S. shale industry. The company also said it will pay dividends of about $20 billion over the period and limit average
Read more