Skip to content
All library documents

Multi-Pass Moving Average Filter for Trading Signals

Article MQL5 code base

Summary

This document describes a moving-average indicator that applies multiple passes of an averaging process. It frames the method as a simple digital filter and says its implementation avoids explicit coefficient handling for simplicity and efficiency. A single pass produces the same value as a simple moving average; the behavior differs when additional passes are used.

The suggested use is to watch for color changes as possible signals, vary the pass setting, and test the settings with short moving-average periods. The published indicator limits the pass count to ten, though the stated code limit can be changed. The document offers a comparison setup with ten indicator instances, each using a different pass count, but supplies no trading results, market-specific evaluation, or rules for selecting parameters. Color changes should therefore be treated as candidate signals requiring independent testing, rather than evidence of a profitable strategy.

Key ideas

  • The indicator applies repeated averaging and treats the result as a digital filter.
  • A single pass matches a simple moving average, while additional passes change the output.
  • The document proposes using color changes as candidate trading signals.
  • It recommends experimenting with pass counts and short moving-average periods.
  • The published version caps the pass count at ten and gives no performance evaluation.

Tags

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