McGinley Dynamic

McGinley
Indicator

TrendOn the price chartFree on ChartLabs

The McGinley Dynamic adjusts its own speed as price pulls away from the line. ChartLabs runs it at length 14 on the close.

Created by John R. McGinley, 1997. Reviewed by the ChartLabs team, updated Nov 2026.

Example market1hIndicatorsAtlas AIMcGinleychartlabs.co/charts
Example market, 1h1268,86565,84662,82759,80964,803.7
Atlas reads it

Price is above the McGinley line.

MD 63,693.7

Atlas reads it

Price is above the McGinley line.

MD 63,693.7

Illustration on simulated data.

McGinley DynamicWhat is the McGinley indicator?

The McGinley Dynamic draws one blue line (#2962FF, 1 px) on the price chart. The only input is Length, default 14. The source is the close and cannot be changed.

Once the line exists, the next value is the previous line plus the distance from the close, divided by length times (close / previous line) to the fourth power. When the close is far from the line the fraction changes, so the line speeds up or slows down with that gap. There is no separate speed setting.

The line is blank on records 0 through 12. On record 13 it equals the simple average of the first 14 closes. The adjustment starts on the next bar. A close of zero, or a step that is not a real number, blanks the bar and starts the warm-up over. This page does not claim the line stays nearer price than an EMA. It describes the adjustment McGinley published.

Seeded with an average

The first value is the SMA of the first 14 closes, not the first close itself. Do not expect a line on bar 1.

Close only

There is no source input. A non-positive path that hits zero restarts the line.

McGinley signalsFive patterns to know.

1Bullish lean

Close above the line

The close is above the McGinley line.

2Bearish lean

Close under the line

The close is under the line.

3Inconclusive

Line near price

The adjustment has kept the line close to recent closes. A quiet market does this too.

4Inconclusive

Close crosses the line

Price has moved through the line. The next bar's speed depends on how far the close then sits from it.

5Bullish lean

A dip toward the line

Price comes back to the line and closes above it again. The line is an average, not a floor.

McGinley formulaHow it is calculated.

MDt=MDt−1+closet−MDt−1N×(closet/MDt−1)4
STEP 1

Wait for 14 closes

Sum the first 14 closes and divide by 14. That average is the line on record 13. Earlier records are blank.

STEP 2

Adjust from the gap

Add (close minus the line) divided by 14 times (close / line) to the fourth. That is the next line.

STEP 3

Restart if it breaks

A close that is not a real number, or a step that divides by zero, blanks the bar and the warm-up starts again.

McGinley settingsEvery setting, explained.

SettingDefaultRangeWhat it changes
Length141 to 5,000N in the adjustment, and the number of closes in the opening average. The Signal lens on this page changes this.
SourceCloseFixedAlways the close. There is no source input.
LineBlue #2962FF, 1 pxFixedOne line on the price chart.
Setting
Length
Default
14
Range
1 to 5,000
What it changes
N in the adjustment, and the number of closes in the opening average. The Signal lens on this page changes this.
Setting
Source
Default
Close
Range
Fixed
What it changes
Always the close. There is no source input.
Setting
Line
Default
Blue #2962FF, 1 px
Range
Fixed
What it changes
One line on the price chart.
146 turns in view
70,20866,82563,44360,06164,803.7

Drag to see how the setting changes the lines and how many signals you get. Illustration on simulated data.

McGinley strategiesUse it in 3 setups.

Side of the line as the bias

Whilethe close is aboveMcGinleyfavourlongs

Above the line, the close is above the adjusted average. Traders often use that as a filter.

A return to the line

Ifprice dips tothe lineandcloses back abovethenlook long

The line is where the adjustment has settled. A close back through it is the event. It fails in a range, like any average.

Cross as the trigger

Ifthe close crosses the lineexit whenit crosses back

A cross means the close moved through the adjusted average. Many traders want a second tool on the same side.

Test a rule in the Strategy TesterFree with 1 year of history. Past results do not guarantee future results.

McGinley mistakesCommon mistakes.

Assuming the line is always tight to price

The formula changes speed with the gap. It does not promise a smaller gap than an EMA. Watch it on your market.

Looking for the line on the first bar

The first 13 records are blank. Record 13 is a simple average, and only later bars use the adjustment.

Ignoring a restart

A zero close or a broken step wipes the line and starts the 14-bar average again. The gap is real. The line did not hide.

McGinley combinationsPair it with these.

McGinley FAQQuestions traders ask.

What is the default McGinley length?

14, on the close. There is no source input and no second speed setting.

How does the speed change?

The divisor is the length times (close / previous line) to the fourth power. A close far from the line changes that divisor, so the line catches up faster or slower. There is nothing else to set.

Why is there no line at the start?

Records 0 through 12 are blank. Record 13 is the simple average of the first 14 closes. The adjustment begins on the next bar.

Does it stay closer to price than an EMA?

The formula is built to adjust with the gap. ChartLabs does not claim it hugs price more tightly than an EMA. Compare the two on your chart.

What happens on a zero close?

The step is not a real number, the bar is blank, and the warm-up starts over from the next closes.

Is the McGinley Dynamic leading or lagging?

Lagging. It is an adjusted average of closes that have already printed.

Does it repaint?

No. A closed bar keeps its value. The live bar moves until it closes.

What timeframe can I use?

Any. Length 14 means the same thing on each: 14 closes to seed, then the adjustment.

Who created it?

John R. McGinley, Market Technicians Association Journal, 1997. The opening average ChartLabs uses is the simple average of the first 14 closes.

Related indicatorsMore trend tools.

All trend indicators

Try McGinley on a live chart.
Free. No download.

Works in your browser and on iPhone too.

Example market1h
McGinley Dynamic (14)