Skip to content
All library documents

Comparing 14 Moving Average Types on Closing Prices

Article MQL5 code base

Summary

This document describes an indicator that calculates fourteen kinds of moving averages from closing prices. The listed methods include simple, exponential, weighted, volume-weighted, Wilder-style, double and triple exponential, zero-lag, hull, Arnaud Legoux, least-squares, smoothed, and Donchian averages. It notes that most calculations draw on Pine Script libraries, but it does not provide formulas, parameter settings, or code in the text.

The indicator offers a way to compare several smoothing approaches within one tool. These averages can differ in how they weight recent prices, respond to changes, or reduce lag, though the document does not compare their behavior or prescribe a trading signal. No backtest, market example, or performance evidence is included, so the listing alone does not establish which type is preferable. Traders would need to review the implementations and test any chosen average with their own data and strategy assumptions.

Key ideas

  • The indicator calculates fourteen moving average variants from closing prices.
  • The listed variants include simple, exponential, weighted, volume-weighted, and several lag-adjusted averages.
  • Most calculations are said to rely on Pine Script libraries, but formulas and settings are not supplied.
  • The document gives no comparison, backtest, or recommendation about which average to use.

Tags

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