Skip to content
All library documents

Adding Sound, Email, and Push Alerts to Buy and Sell Indicators

Article MQL5 code base

Summary

The document explains how to add alert delivery to an existing MetaTrader indicator that already records buy and sell signals in buffers. Separate routines check the selected bar for a nonempty signal and can issue a terminal sound alert, send an email, or push a notification to a mobile device. The alert text includes the signal direction, symbol, chart period, time, and prices estimated from the close and spread data.

Inputs let the user select the bar to inspect, limit repeated alerts, and enable or disable each delivery method. The routines are called after the indicator's calculations, and the document assumes each is called only once from the calculation block. It describes implementation rather than a signal-generation method: the underlying indicator's logic is not explained, and no evidence of trading performance is provided. The quoted price construction and alert-count behavior should be checked against the intended broker and platform setup before relying on notifications.

Key ideas

  • Alert routines can read buy and sell signals from existing indicator buffers.
  • Sound, email, and mobile push notifications can be toggled independently.
  • The selected bar, alert count, symbol, timeframe, time, and price details are used in notifications.
  • The document covers alert plumbing and does not assess the underlying indicator's signal quality.

Tags

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