Skip to content
All library documents

McGinley Dynamic as an Adaptive Moving Average

Article MQL5 code base

Summary

The McGinley Dynamic is presented as a moving-average alternative designed to adjust its speed as market prices change. Unlike a conventional moving average with a fixed period, it aims to stay closer to price during rapid moves and reduce lag-related whipsaws. The document suggests using it for trend confirmation or as part of a crossover signal.

Its sole input is a smoothing period, suggested at 60% of the period used for a comparable moving average; the example maps a 20-period average to a setting of 12, while the indicator’s stated default is 125. A chart comparison is described as showing the Dynamic reacting sooner to rising prices and tracking them more closely. These are qualitative observations only: no formula, test methodology, asset or timeframe, performance statistics, or evidence of improved trading outcomes is provided. The suggested period relationship should therefore be treated as a starting point for comparison rather than a validated universal setting.

Key ideas

  • The McGinley Dynamic is designed to vary its speed with market conditions.
  • It is offered as a substitute for a conventional moving average in trend confirmation or crossover signals.
  • The document suggests setting its smoothing input to 60% of the comparison moving-average period.
  • The described chart comparison is qualitative and does not establish trading performance.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.