Skip to content
All library documents

Incremental Running Median as a Robust Trading Indicator

Article MQL5 code base

Summary

The document introduces a running median indicator for MetaTrader 4. It explains the median as the middle value of an ordered sample and presents it as a smoothing method that is less affected by outliers than the mean. The indicator uses an odd-sized span and is intended to update incrementally, avoiding repeated sorting of the full sample when calculating each new value.

The author also claims that the median is non-lagging and that its distance from the mean is bounded by one standard deviation. These are broad statistical claims rather than a trading evaluation: the document provides no parameter guidance, market examples, backtest, or comparison of signals. It describes a computational approach and its motivation, but does not specify how a trader should interpret the indicator or combine it with entries, exits, and risk controls. The indicator is stated to be released under the GNU public license.

Key ideas

  • A median summarizes the central value of an ordered sample and is less sensitive to outliers than the mean.
  • The indicator calculates a median over an odd-sized span.
  • An incremental calculation is intended to avoid repeatedly sorting a time series.
  • The document offers no trading rules or performance evidence for the indicator.

Tags

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