Posted by: Babu Suresh | February 19, 2012

Hull Moving Average – HMA

Moving averages smooth data and make it easier to analyze price movements, but they tend to lag. Here’s a market timing system that removes the lag and forecasts future data.

Buy & hold works well as the market goes up, but the strategy falls apart when the market tanks. We need a timing model to preserve capital in down markets and identify opportunities in up markets. Is it possible?

Moving averages are often the best way to eliminate data spikes, and those of relatively long lengths smooth data as well. However, moving averages have a major flaw, in that their long lookback periods introduce lag. The solution is to modify the moving average formula and remove the lag. Doing so minimizes the possibility of the moving average overshooting the raw data when predicting the next interval’s activity and thus introducing errors. Here’s how it can be done.

Removing the lag
A new type of moving average developed by trader Alan Hull attempts to solve this problem. In this variation, a simple moving average (Sma) is the summation of data samples divided by the number of samples (N). The Hull moving average (Hma) accomplishes the smoothing by using the weighted moving average (Wma) and a square root of N. The calculation is thus:

HMA(N) = WMA(2*WMA(N/2) –
To step through this formula: Take the Wma of the last N/2 data and multiply it by 2. Then subtract the Wma of the last N data. Now take that value and use the square root of N. Then find the Wma of those two values (that is, the Wma [sqrt of N] of the remembered value). Since the square root truncates values, the calculation should choose an N that is a perfect square such as 4, 9, 16, 25, 49, or 81.

Ref.: Hull Moving Average by Max Gardner


Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s


%d bloggers like this: