Skip to content
All library documents

Designing Moving Average Systems with Single and Multiple Crossovers

Article MQL5 articles

Summary

The article explains simple, weighted, and exponential moving averages, emphasizing that moving averages smooth price data, follow trends, and lag because they are calculated from past prices. It then outlines three rule sets: compare price with one simple moving average, compare a shorter average with a longer one, and align three averages for directional signals. The examples use illustrative periods and describe displaying buy or sell indications in an MQL5 chart program.

These rules are presented as introductory system-design examples, not as demonstrated profitable strategies. The article notes that moving averages may reduce noise and false breakouts, while also warning that testing and optimization are needed. It supplies no performance statistics, comparative evidence across average types, or detailed treatment of costs and whipsaws. The crossover signals are basic trend-following conditions and may lag or behave poorly in sideways markets.

Key ideas

  • Simple, weighted, and exponential moving averages differ in how they weight recent and prior prices.
  • Moving averages smooth prices but lag because they are derived from price history.
  • A single-average rule compares price with the average, while multi-average rules compare averages with one another.
  • The examples produce directional signals through simple MQL5 chart logic.
  • The article provides no performance evidence and recommends testing before use.

Tags

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