Trend & direction

McGinley Dynamic · MD

John McGinley's self-adjusting average that speeds up or slows down to hug price without lagging behind.

Works best in trending marketsEngine-computed on a fixed sample series
14512096Price above EMA 12 = strengthPrice below EMA 12 = weaknessEMA 12 acts as support / resistance
EMA 12EMA 26How to read MD on the chart — the callouts mark what to look for.

The formula

Start from the previous value and step toward price, but scale the step by the ratio of price to the line raised to the fourth power. When price runs far below the line the denominator shrinks, so the average speeds up to follow the fall; when price pulls far above it the denominator grows and the average slows, damping whipsaws. N is the base length, often 10 to 14.

MD = MD_prev + (Price − MD_prev) ÷ (N × (Price ÷ MD_prev) raised to the 4th power)
Worked example
PriceMD_prevStepMD
104100+0.34100.34

MD = 100 + (104 − 100) ÷ (10 × 1.04 raised to the 4th power) ≈ 100.34

What it is

The McGinley Dynamic is a moving average with a mind of its own, designed by market technician John R. McGinley to fix the two problems that plague ordinary moving averages: they lag too far behind price in fast markets and they separate awkwardly from price during sharp moves. Rather than using a fixed period that treats every market the same, the McGinley Dynamic contains a self-adjusting speed control that lets the line accelerate when price is pulling away and ease off when price is drawing near. The result is a smoother line that tends to hug price more faithfully than a simple or exponential average of comparable length. McGinley intended it not as a signal generator on its own but as a better market-tracking baseline — a moving average that stays glued to the trend without whipsawing on every spike. In practice you read it exactly like any moving average, but you get less lag and fewer of the false gaps that fixed averages open up when volatility surges.

How it is calculated

The McGinley Dynamic is computed recursively: each new value equals the previous value plus a correction term that pulls the line toward the current price. That correction is the difference between the current close and the previous McGinley value, divided by an adaptive denominator, and it is the denominator that makes the indicator special. The denominator multiplies a smoothing constant N by the ratio of price to the previous McGinley value raised to the fourth power. When price rises above the line, that ratio exceeds one and the fourth power inflates the denominator, which shrinks the correction and slows the line so it does not chase every upside spike. When price falls below the line, the ratio drops below one, the fourth power makes the denominator smaller, and the correction grows, letting the line track declines more quickly. This asymmetric, price-relative adjustment is what allows one formula to speed up and slow down automatically as conditions change.

Reading it, step by step

Read the McGinley Dynamic as a smarter, more adaptive moving average. Price trading above a rising McGinley line indicates an uptrend with the indicator confirming the advance; price below a falling line indicates a downtrend. Because the line adjusts its speed, it tends to stay closer to price through changes of pace than a simple or exponential average, so crossovers of price through the line are cleaner and less prone to the repeated false breaks that fixed averages produce in volatile conditions. The slope of the line is your trend gauge — steeply rising is strong bullish momentum, flattening warns the trend is stalling, and rolling over signals a possible change. Two McGinley Dynamics of different lengths can be read like any dual-average system, with the faster crossing above the slower as a bullish cue and below as bearish. The core message is always the relationship between price and this adaptive line and the direction the line is pointing.

Reading the signals on the chart

14512096
EMA 12EMA 26The ▲/▼ marks flag where price most recently crossed the line — the cues a trend-follower would act on.

Best timeframes

  • Scalping1m – 5mN 5–10
  • Day trading5m – 15m
  • Swing1H – dailyN 10–14
  • PositionDaily – weekly

Use it anywhere you would use an EMA — the adaptive step keeps it closer to price through changes of pace.

McGinley Dynamic vs standard averages

McGinleyEMASMA
Adjusts speedYesNoNo
LagLowMediumHigh
Hugs price in fast movesYesNoNo
Widely supportedNoYesYes

Common price-action setups

How the signal typically plays out on the chart.

Price reclaims the line

Price crosses above a flattening-then-rising McGinley Dynamic — enter long as the line turns up, with a stop below the crossover swing low.

Buy the cross
Uptrend begins
Trend pullback

In an uptrend price dips to the rising line and holds — buy the bounce off the McGinley with a stop just beneath it.

Buy the pullback
Bullish continuation
Line rolls over

Price closes below a falling McGinley Dynamic — exit longs or short, placing the stop above the line.

Sell the cross
Downtrend begins

Best timeframes and settings

The McGinley Dynamic works across timeframes wherever you would otherwise use a moving average, from intraday scalping baselines to daily swing-trading trend lines to weekly position charts. The single tunable input is the smoothing constant N, which governs tracking speed much as the length does for an ordinary moving average and is typically set to about the period of the average you are trying to improve upon, so values around 10 to 20 are common and many platforms default N to roughly 14. A smaller N makes the line faster and more responsive but noisier, while a larger N makes it slower and smoother — the same responsiveness-versus-noise trade-off every average faces, only softened by the adaptive term. Because the formula already dampens overreaction, you can often run a slightly shorter N than you would with a plain EMA and still get a stable line. Test the setting on your specific instrument, since the fourth-power term can behave differently on assets with sharp gaps.

When and where to use it

The McGinley Dynamic is most useful as a trend-following baseline in markets that move in sustained directional runs, where its reduced lag helps you stay in trends longer and its resistance to false separation keeps you from being shaken out on spikes. It is an excellent drop-in replacement anywhere a conventional moving average feels either too laggy or too jumpy, such as fast-moving stocks, index futures, and liquid crypto during trending phases. In tight, sideways ranges it offers the same limited value as any moving average, hugging a flat price and producing few actionable cues. It is best avoided as a sole tool on very gappy or thinly traded instruments, where the exponent in its formula can make the line jump or behave unpredictably. Think of it as the sturdy trend anchor of a system rather than a standalone timing device.

Strategies that use it

The simplest strategy substitutes the McGinley Dynamic for a moving average in a price-crossover system: go long when price closes above a rising McGinley line and exit or reverse when price closes below a falling one, benefiting from fewer whipsaws than the same rule using an SMA. A two-line version plots a fast and a slow McGinley Dynamic and trades their crossovers, entering long when the fast line crosses above the slow and short when it crosses below, using the adaptive smoothing to reduce the false crosses common to dual-average systems. A third approach uses a single McGinley Dynamic purely as a dynamic trailing reference: you hold a trend position as long as price respects the line and stand aside or tighten stops when price decisively breaks it. In each case the McGinley's tighter tracking of price means your signals arrive with less delay and your stops sit closer to the actual trend.

Combining it with other indicators

Because the McGinley Dynamic is a trend tool, it pairs naturally with a momentum oscillator such as RSI, the Stochastic, or MACD that can confirm whether the move behind a crossover has strength or is running on fumes. An ADX reading alongside it distinguishes the trending conditions where the line excels from the ranging conditions where any average struggles, letting you switch tactics accordingly. Volume indicators like OBV can corroborate that a break of the McGinley line is backed by real participation rather than a thin spike. Support and resistance or a higher-timeframe McGinley line give context for whether a crossover is occurring at a meaningful location. Traders sometimes overlay the McGinley Dynamic and a plain EMA of the same length to visualize how much lag the adaptive term is removing, using the gap between them as a rough measure of how fast the market is moving.

Where it fails

The fourth-power term at the heart of the formula can misbehave on gappy or thin data, occasionally causing the line to lurch or to track price in counterintuitive ways when the ratio of price to the average swings wildly. Like every moving average it reduces lag but cannot eliminate it, so in a sudden reversal the McGinley Dynamic still turns after price does, and acting on it late remains a risk. In choppy, directionless markets it flattens and produces the same unhelpful chop as any average, and crossover signals there will whipsaw. It is also far less widely supported in charting platforms than standard averages, and different implementations of the exponent and smoothing constant can produce visibly different lines, so a signal that fires on one platform may not on another. Relying on it as a lone system rather than a baseline within a broader method is the classic mistake.

A worked example

Suppose a stock is grinding higher and you replace your usual 14-period EMA with a McGinley Dynamic using N of about 14. As price accelerates from 50 toward 60, an ordinary EMA would lag well behind and open a visible gap, but the McGinley's adaptive denominator lets its correction term grow modestly on each up-bar so the line trails price more tightly, sitting perhaps a point or two beneath it rather than several points back. A brief two-day pullback dips toward the line near 57; because price is approaching from above, the ratio moves toward one, the correction shrinks, and the line barely flinches, so you are not stopped out by the noise. When the stock later rolls over and closes decisively below the now-flattening McGinley line, the adaptive term — with price below the line — enlarges the correction and the line turns down promptly, giving you a timely exit near 58 that a slower fixed average would have delayed. The trade captured most of the run while sidestepping the shakeout, illustrating why McGinley built the speed control.

Common mistakes

  • Expecting it to remove lag entirely — it reduces lag, but no average predicts.
  • Running it on gappy or thin data, where the fourth-power term can behave erratically.
  • Treating every brush of the line as a signal in a sideways market.
  • Assuming your platform has it — support is far thinner than for SMA or EMA.
  • Using a very short N on noisy data and getting whipsawed by the faster response.