Skip to content
All library documents

Arithmetic and Geometric Moving Averages on OHLC4 Prices

Article MQL5 code base

Summary

This indicator displays arithmetic and geometric moving averages in one chart window. Both are calculated from the average of each bar’s open, high, low, and close prices, rather than from closing prices alone. Users can set a separate lookback period for each average.

The description gives no entry or exit rules, performance evidence, or guidance on how to interpret crossings or divergences between the two lines. It presents a configurable charting tool, so traders would need to test and define its role within a broader method before drawing conclusions from it.

Key ideas

  • The indicator plots arithmetic and geometric moving averages together.
  • Both averages use the mean of open, high, low, and close prices as their input.
  • Each average has an independently configurable lookback period.

Tags

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