The Hull Moving Average
There are many, many kinds of moving averages out there. All of them suffer from one kind of weakness or another, much like any sort of parameter does. The Weighted Moving Average and the Exponential Moving Average both try to address lag in the Simple Moving Average by placing emphasis in the calculation in the more recent minutes. I recommend going to Investopedia for calculations of the basic set of technical indicators. For the readers sake with regards to moving averages, an SMA is simply plotted as the average of the past 'n' periods. (usually the closing prices of said periods) General interpretations involve a faster (smaller 'n') MA crossing over a slower MA to indicate a trend. I prefer price action relative to the usual set of MA's, myself, rather than MA's relative to each other.
But, I digress. Enter the Hull Moving Average, or HMA, which attempts to address both lag as well as to smooth out what might otherwise be a choppy line moving in a choppy market. It's an obscure moving average created by Alan Hull and many chart packages won't have it available. Here is the equation based on period n (and, "of the price 'p'", obviously):
HMA(p,n) = WMA[(2*WMA(p,n/2) – WMA(p,n)), n^1/2]
A bit of a mouthful I know. Let me walk you through it. An HMA of the price 'p' based on 'n' periods is essentially a WMA of the difference between 2-times the value of a WMA of length 'n/2' and a WMA of length 'n', based on the square root of 'n' periods. Follow? Working from the bottom up, to find HMA(p,n), find WMA(p,n/2), double it, and take away the value of WMA(p,n) to get.... let's say 'h'. (as opposed to 'p', as in price) Now the HMA (p,n) = WMA (h, n^1/2). Oh and of course every parameter must end up being an integer so rounding occurs in the event of uneven, non-square numbers.... which is exactly why I prefer to use even square numbers as parameters.
Why those particular relations (n/2, n^1/2) exist in the equation is actually beyond me, (probably the result of lots of trial and error) but it doesn't matter, because as a rule the HMA does what it sets out to do: produce a smoother, less-laggy line. But, as a side effect sometimes the line is prone to overshooting. This is because the two relations can sometimes overcompensate, as any two elements that attempt to eliminate lag are bound to overtake the issue at hand; kind of like rear-ending the guy in front of you if you're following too close in your car.
Okay, interpretation: I would say that the slope of the HMA is best used as your filter and you wait for a pullback from the direction of the HMA and then a resumption of the movement. For example, the HMA has changed from pointing down to up, and the market is doing that ahead of it. This means that you shall only take long positions in the next short while. So, wait for a pullback from the upwards movement, and get in as the momentum resumes upwards, using the bottom of the pullback or the recent low as a stop. It's noteworthy that the pullback might occur “within” a candle.
Another way to look at the HMA is, especially in a fast market, the price action relative to it. For example, breaking highs of candles above the HMA, that sort of thing.
Here's the HMA(16 in blue, 36 in white) in action on Potash (NYSE: POT – which, incidentally is a buy anywhere below 100 I say) today. Also, Apple (NASDAQ: AAPL) and Exxon Mobil (NYSE: XOM) The HMA is useful on dailies as well, but unfortunately, given the incredibly large swings day-to-day in the equity markets these last many months using any indicator on a daily chart with that recent data won't provide a good sample at all. The good news: daily activity in '09 has been, while fast, a lot more reasonable than the craziness that was September through November.
So, the pictures: (ed: the HMA's have been shifted to the right by one so as to give a better picture of corresponding values with the “present” price)
Disclaimer:Any information contained in the above article represents my opinions only, and should not be construed as personalized investment advice. I cannot assess, verify or guarantee the suitability of any particular investment to any particular situation and the reader of the article bears complete responsibility for its own investment research and should seek the advice of a qualified investment professional that provides individualized advice prior to making any investment decisions. All opinions expressed and information and data provided therein are subject to change without notice.
Delicious
Digg
StumbleUpon
Propeller
Reddit
Hi Ivan, and thanks for your
Hi Ivan, and thanks for your comment. In short, "WMA(n)),sqrt(n)" is not a term. The opening parenthesis (before the 2) is what was missing... nice catch on that. I've corrected the equation and changed the notation... no matter what, "sqrt n" is a constant, based on the choice of 'n'. The idea was that "2*WMA(n/2)-WMA(n)" and "sqrt(n)" are actually the parameters (the analagous p,n) to the WMA[..] Cheers
Thanks for posting some
Thanks for posting some discussion on this, I am trying to get a handle on how to implement the Hull moving average in Excel.
There seem to be at least two problems with the formula you show:
HMA(n) = WMA[2*WMA(n/2) – WMA(n)),sqrt(n)]
Let's focus on this term: WMA(n)),sqrt(n).
First, notice the double clothing parentheses, "))". The second clothing parentheses seems to be in error; it seems like you want to express WMA(n), not WMA(n)). (What unique quantity does the second closing parentheses define?)
More importantly, with or without the apparently unneeded parentheses, the entire term WMA(n)),sqrt(n) is ambiguous to me. What operation is intended by placing a comma between those two terms? How does the square root of n relate to WMA(n) or WMA(n)) algebraically? This is algebraic code, not proprietary system code for TradeStation or MetaStock or something. It should be clear what algebraic operations to perform based on the expression, but it's not, at least to me.
Are we supposed to take the nth root of the entire quantity enclosed in brackets? If so, why not just use x^(1/n) notation instead of inventing new, obscure notation?
Any explanation would be most appreciated, and thanks again. Just trying to get to the bottom of this, for implementing in Excel.
Great article VO! The Hull
Great article VO!
The Hull Moving Average, was something I had heard of before, but never took the time to look into more. I am glad you posted this, it looks promising, and I'll definitely have to play around with it a bit to see if it can be a good fit for my trading style.
-BD