Trading Articles

The McGinley Dynamic By Brian Twomey

The McGinley Dynamic By Brian Twomey Cover

Apply this market tool devised by a master technician to analyze the forex markets. The McGinley dynamic is a market tool invented by veteran trader/market technician John McGinley. Information about this tool was ļ¬rst published in the Market Technicians Associationā€™s Journal Of Technical Analysis as an outline in 1991 and published there as a full-blown study in 1997. I have attempted here to capture the thought processes of the mind of a master technician as he worked through the process of invention to perfection of this tool. But before that, we must become reacquainted with some staples of technical analysis.

MOVING AVERAGES

A moving average is the study of the history of time series analysis. Early practitioners used various algorithms to smooth data and ļ¬‚atten various-shaped curves, yet this early work was quite primitive. Graduation methods were used later, like a ļ¬tting line using a least-squares rule for plotting and construction purposes. Fitting lines using the least-squares rule was later adopted by technical analysis in the family of moving averages. This began the process of interpolating data using probability theories and analysis.

In the Journal Of The Royal Statistical Society in 1909, G.U. Yule described instantaneous averages that R.H. Hooker had calculated in 1901 as moving averages. Yule identiļ¬ed properties of the variate difference correlation method. The term moving averages apparently entered the lexicon shortly after in 1912 through W.I. Kingā€™s publication of Elements Of Statistical Methods. Later adopting Yuleā€™s studies, Harold Wold described moving averages in a 1938 study called Analysis Of Time Series. Others attribute exponential smoothing to R.G. Brownā€™s and Charles Holtā€™s individual works on inventory control in the 1950s.

EXPONENTIAL SMOOTHING

P.N. Haurlan was the ļ¬rst to use exponential smoothing for tracking stock prices and advanced the study for modern-day technicians. Haurlan referred to ā€œexponential smoothingā€ as ā€œtrend values,ā€ where a 19-day exponential moving average (EMA) was referred to as a 10% trend. His earlier work as a designer of tracking systems for rockets helped him design steering mechanisms. If the steering mechanism was off, it needed further inputs. Haurlan called this ā€œproportional controlā€ and used this method in his groundbreaking studies.

For Haurlan and others, the EMA was the method of choice because of its focus on two inputs as opposed to the simple moving average (SMA) that needed many past datapoints. These early technicians used pure mathematical calculations graphed on chart paper. For example, Haurlan needed a conversion factor, a smoothing constant. His smoothing constant is:

2/(n+1)

where n is the number of days.

So a 19-day EMA equates a 10% trend by 2/(19+1) = 2/20 = 0.10, or a 10% smoothing constant. Proportionate control equals how far price moved from the trend value and adjusts by using trend value curves. This he charted in waves by 1%, 2%, 5%, 10%, 20%, and 50%. Haurlan developed tracking rates based on trends. These tracking rates were measured against a stabilization period. For example, a 50% tracking rate has a ļ¬ve day stabilization period. Technicians Sherman and Marian McClellan added two different EMAs of daily breadth ļ¬gures, 10% and 5% trend. This gave the ļ¬rst alerts to crossovers when the 10% trend moved above the 5% trend. This detected a market reversal as well as overbought and oversold markets.

The McClellans later invented the McClellan oscillator and the summation index based on their calculations and charting methods during this period. The McClellan oscillator measures the acceleration of daily advance-decline statistics by smoothing with two different EMAs and ļ¬nding the difference between the two.


Suggested Books and Courses About Market Indicators


Haurlan and Humphrey Lloyd, with Lloydā€™s groundbreaking book called The Moving Balance System and his invention of the moving balance indicator, beneļ¬ted from the easier use of coding EMAs that only needed two inputs: price and the prior value. Back then, computer sophistication wasnā€™t available, and hence the reason for EMAs over SMAs that needed many datapoints. What separated John McGinley from earlier technicians was his ground-breaking work in moving averages, eventually leading to the McGinley dynamic. What did he see?

There are two problems with moving averages: One, they are inappropriately applied, and two, they are overused.

THE MCGINLEY DYNAMIC: THE EARLY YEARS

According to McGinley, there are two problems with moving averages: One, they are inappropriately applied, and two, they are overused. In addition, they can be outrun by the raw data. Because of this, they should only be applied as smoothing mechanisms, not as trading systems or signal generators. As he said, consider that moving averages range in their uses from fast to slow markets. How can you know which moving averages to use and how to apply them? How can you know when to use a 10-day average rather than a 100-day? Further, moving averages are ļ¬xed in length without the ability to change. This is a restriction in their use since they canā€™t adjust to changing data during trading days. You want to have a smoother that ļ¬lters the whipsaws, but outliers do exist in averages. What should you do with a 10-day moving average on the ninth or 10th day, considering that much of the trend has been lost?

The McGinley Dynamic By Brian Twomey 01

FIGURE 1: THE 10-DAY SIMPLE MOVING AVERAGE. As you can see from this chart, there are too many degrees of separation, too many dropoffs, and too much indecision regarding market direction.

Next, says McGinley, simple moving averages are always out of date. A 10-day average is off by ļ¬ve days or half its length and graphed incorrectly. There is a strong chance that big price moves already occurred within the ļ¬ve days, so the graph set at 10 periods must also be off. An example can be seen in the chart of EUR/USD in Figure 1. The further problem is the dropoff, the difference in price and the line. What if the new data from X days ago is dropped and the data drop is larger than present values? The moving average must also drop, thus generating false signals.

The exponential moving average (EMA) improves on the SMA because calculations allow the average to hug prices more smoothly and allows for faster response to market data. Compare the chart of the EUR/USD in Figure 2 to that of Figure 1. The EMA underperforms in consolidations just as the simple moving average does, generating line breaks and sheer trading indecision.

The McGinley Dynamic By Brian Twomey 02

FIGURE 2: THE 10-DAY EXPONENTIAL MOVING AVERAGE. Note the degrees of separation from prices as well as the dropoffs. Note the movements when prices fall in a range.

Exponentials require two inputs, previous average and current price. The classic calculation is A x the previous moving average + B x new data where A + B = 1.0. Usually, a small part of the new data is added to a large piece of the old. To build on Haurlanā€™s earlier works, for example, an 18% exponential where A = 0.82 and B = 0.18 can be compared to a normal moving average where B = 2/(x+1). So an 18% exponential (x = 10) hugs prices as closely as a 10-day moving average (2/(10+1)) = 18%.

The shape of the exponential may be different due to calculations. The exponential calculation of B can be adjusted to ļ¬t market data and prices where SMAs are ļ¬xed. It is much more rigid due to its calculations. EMAs therefore follow prices and market changes better than a ļ¬xed SMA does. They tend to smooth the data better. See the chart of the EUR/USD in Figure 3. Yet the EMA is not perfect, since adjustments are always needed and it cannot rise with falling prices or fall with rising prices. So whatā€™s the answer?

The McGinley Dynamic By Brian Twomey 03

FIGURE 3: 10-DAY SMA VS. 10-DAY EMA

THE MCGINLEY DYNAMIC

Building on years of moving average research, the McGinley dynamic was invented as a market tool designed to generate less whipsaws, hug prices more closely, adjust calculations to ļ¬t the userā€™s needs, and automatically follow fast and slow markets. Think of the dynamic line of the McGinley dynamic as Haurlanā€™s steering mechanism, a proportionate control tool that steers the dynamic line along with prices. Does the McGinley dynamic live up to its reputation? Yes. Does it perform the above functions? Absolutely. Building on Lloydā€™s work of moving averages where the previous dynamic line was modiļ¬ed, here is the new formula:

The McGinley Dynamic - furmol

The index may be the Dow Jones Industrial Average (DJIA), the Standard & Poorā€™s 500, or a stock. McGinley divides the difference between the dynamic and the index by N times the ratio of the two. The numerator gives the up or down sign and the denominator stays within the percentage bounds deļ¬ned by N. McGinley further states the fourth power, which is the ratio that allows the dynamic line to speed up and follow prices, speciļ¬cally for down moves. It gives the calculation an adjustment factor that sharply increases the difference between the dynamic line and the current data. He also states that the size of the adjustment changes logarithmically and not linearly. This feature allows the dynamic to hug prices, no matter what the speed of the markets.

McGinley states that N should be 60% of the moving average you wish to emulate. His example is a 20-day moving average that uses an N of 12. The dynamic line adjusts itself by speeding up or slowing down as the market dictates. The second term of the equation is not a factor unless the difference between the index and the dynamic line is large. This aspect of the equation deals with lengths or slopes.


Ā Suggested Books and Courses About Trading Charts


An important factor is the second term, however. McGinley says in fast up markets, the dynamic line slows less than in down markets. Itā€™s the factor of the fourth power that speeds up the dynamic line in down markets. From McGinleyā€™s example, insert 10 for the old dynamic, 5 for the close and N = 7, a product of -6.67. Further, make the close = 14 and you get 0.15. So 14 is far above the old dynamic as 6 is below. This is not a problem, according to McGinley, as the objective is to let proļ¬ts run and bail out when the market drops. So the upside proļ¬ts run without whipsaws while the downside adjusts quickly to a drop, allowing opportunity to cut losses. So do you avoid a loss or grab a gain? Thatā€™s the decision you need to make.Ā  Figure 4 displays the SMA, EMA, and the McGinley dynamic applied again to the EUR/USD currency pair.

The McGinley Dynamic By Brian Twomey 04

FIGURE 4: putting it all together. The top red line represents the 14-day moving average, the second blue line is the 14-day EMA, and the cyan line is the McGinley dynamic line. Note how the dynamic line hugs prices, lacks dropoffs and degrees of separation.

WHAT DOES THE MCGINLEY DYNAMIC DO?

John McGinley set out to avoid whipsaws that moving averages are prone to and ļ¬nd a tool that wonā€™t separate prices from the average. The dynamic line rises with falling data. Only one piece of back data is needed. In any trending or trading market, the dynamic doesnā€™t need backtesting or adjustments. In instances of extreme whipsaw markets, it still sells high and buys low. Moving averages move away from prices and could result in losses, especially when crossovers occur. The McGinley dynamic avoids these dilemmas.

I have used the term ā€œmarket toolā€ when referring to the McGinley dynamic. McGinley says the dynamic line is not an indicator and shouldnā€™t be used as such. He abhors the idea of using the dynamic as a trading vehicle. The McGinley dynamic is not only a remarkable tool, but it is the product of many years of intense research and insight by a master technician.

Brian Twomey is a currency trader and adjunct professor of Political Science at Gardner-Webb University. He would like to thank John McGinley for bringing forth the dynamic. Twomey also thanks Tom McClellan, editor of the McClellan Market Report, for access to research. And ļ¬nally, giant thank yous to Jeanette Young, the ā€œoption queenā€ at the Market Technicians Association, for her help.

author-avatar

About Editorial Team

The dedicated editorial team at Sacred Traders has a passion for educating traders of all levels. With decades of combined experience trading stocks, forex, commodities, futures, and options, they provide insightful analysis and actionable advice to help readers succeed in the financial markets. The editorial team includes experts in technical and fundamental analysis. They consistently monitor economic reports, earnings announcements, political developments, and other factors that can impact asset prices. By synthesizing this information into trading alerts, educational resources, and market commentary, the Sacred Traders team provides traders with the essential knowledge needed to thrive across asset classes.

Leave a Reply