Skip to content
All library documents

XMA Digital Adaptive Moving Average with a Price-Step Filter

Article MQL5 code base

Summary

XMA is described as a moving average whose output is filtered by a minimum price step. It first calculates a moving average using a selected period, calculation method, and applied price. The displayed value updates only when the difference from the prior underlying average reaches or exceeds the configured step in points; otherwise, the previous XMA value is retained.

This rule can suppress smaller bar-to-bar changes, with the document illustrating different step settings. It exposes four parameters: period, price step, calculation method, and applied price. The description explains the indicator mechanics but gives no trading signals, backtest results, or evidence that a particular step improves decisions. The step is expressed in points, so its interpretation may depend on the instrument and price scale; the source provides no normalization guidance.

Key ideas

  • XMA filters a conventional moving average using a minimum change threshold in points.
  • The output updates only when the underlying moving average moves by at least the configured step.
  • Period, price step, averaging method, and applied price are configurable.
  • The description provides no performance testing or guidance for selecting comparable step values across instruments.

Tags

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