McGinley
Indicator
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.
Price is above the McGinley line.
MD 63,693.7
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.
Close above the line
The close is above the McGinley line.
Close under the line
The close is under the line.
Line near price
The adjustment has kept the line close to recent closes. A quiet market does this too.
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.
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.
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.
Adjust from the gap
Add (close minus the line) divided by 14 times (close / line) to the fourth. That is the next line.
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.
| Setting | Default | Range | What it changes |
|---|---|---|---|
| Length | 14 | 1 to 5,000 | N in the adjustment, and the number of closes in the opening average. The Signal lens on this page changes this. |
| Source | Close | Fixed | Always the close. There is no source input. |
| Line | Blue #2962FF, 1 px | Fixed | One 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.
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
Above the line, the close is above the adjusted average. Traders often use that as a filter.
A return to the line
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
A cross means the close moved through the adjusted average. Many traders want a second tool on the same side.
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 + EMA 14
A fixed-speed average of the same length, so you can see the adjustment rather than imagine it.
McGinley + SMA 14
The seed of this line is an SMA. Keeping one on the chart shows where the dynamic left that average.
McGinley + ATR
ATR shows whether a gap away from the line is a large bar or an ordinary one.
McGinley + ADX
ADX helps decide whether a cross of the line is happening in a trend.
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 indicatorsTry McGinley on a live chart.
Free. No download.
Works in your browser and on iPhone too.