Skip to content
All library documents

Moving Average Difference Oscillator

Article MQL5 code base

Summary

This document describes a simple oscillator formed by subtracting one moving-average value from another. The two averages can use different periods, producing a fast-minus-slow comparison, or use the same period with one value shifted by a configurable number of bars. The resulting difference provides a way to view how the selected averages diverge or converge over time.

The note identifies the indicator’s dependency on a separate smoothing library and says the original implementation was written in MQL4 before publication in a code library. It refers readers to another article for details about the library’s averaging methods. No trading rules, parameter guidance, chart examples beyond a figure reference, or performance evidence are provided here. The oscillator’s usefulness therefore depends on how a trader interprets its values and validates any signals; the document does not establish that the indicator predicts market direction or improves returns.

Key ideas

  • The oscillator is calculated as the difference between two moving-average values.
  • The averages can have different periods or the same period with a bar lag.
  • The indicator relies on an external smoothing library.
  • The document gives no entry rules or evidence of trading performance.

Tags

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