Skip to content
All library documents

Moving Average Crossover Alerts and Signal Timing

Article MQL5 code base

Summary

This document describes a MetaTrader indicator that watches two moving averages and issues one alert for each upward or downward cross, marking the event with an arrow. Users can choose moving average methods and price inputs, and configure popup, sound, push notification, or email alerts. The crossover checks compare the fast and slow averages on the current and preceding bars. The included example explains the same comparison logic for crossings between stochastic oscillator lines.

The indicator is described as compatible with standard and several offline chart types, including Renko and range charts. It draws no historical arrows when first attached, so its first plotted signal comes from a later cross. The default parameters are presented only for quick testing, not as recommended trading settings. Alert delivery setup, especially email, depends on terminal and network configuration; the notes report limited testing and leave troubleshooting to the user. No performance results establish whether the crosses are profitable.

Key ideas

  • A cross is detected when the fast moving average moves from one side of the slow average to the other between adjacent bars.
  • The indicator can mark crosses with arrows and send alerts through several configurable channels.
  • It supports standard charts and some offline chart formats, but does not backfill historical arrows on attachment.
  • Default parameters are for testing and do not indicate optimal settings.
  • The document provides no evidence that crossover alerts generate profitable trades.

Tags

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