Skip to content
All library documents

Reusable Averaging Algorithms for Price Series in MetaTrader Indicators

Article MQL5 code base

Summary

This document introduces a library of averaging algorithms intended for intermediate calculations on price series. It points readers to a separate article for detailed descriptions of the algorithms and notes that the library has an MQL4 version. An EMA indicator is offered as an example of how to use the averaging routines.

The example is described as adaptable to MetaTrader 4 or MetaTrader 5 by compiling it with the matching language-specific library and file extension. The document includes screenshots of the indicator in both terminals, but supplies no algorithm definitions, numerical comparisons, or evidence that one averaging method performs better than another. It is therefore a brief pointer to reusable indicator-building techniques rather than a complete explanation. Readers would need the referenced article and library to assess the methods’ behavior, assumptions, and suitability for a particular calculation.

Key ideas

  • The library provides averaging routines for intermediate price-series calculations.
  • A sample EMA indicator demonstrates how to use the routines.
  • The example is intended to work with the corresponding library for either MetaTrader language.
  • The document does not explain the algorithms or compare their accuracy or performance.

Tags

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