Skip to content
All library documents

Adding Alerts and Notifications to SilverTrend Buy and Sell Signals

Article MQL5 code base

Summary

This document explains how to add sound alerts, email messages, and mobile push notifications to a SilverTrend semaphore indicator in MetaTrader. It introduces settings for the signal bar, whether sound is enabled, the maximum alert count, and whether email or push delivery is active. Buy and sell routines inspect the indicator’s arrow buffers at the selected bar, then construct a message containing the signal direction, time, symbol, chart period, and price information.

The routines are intended to be called after the indicator’s calculations in its processing block, with buy and sell buffers supplied by the indicator. The document notes that empty buffer values should be represented by zero or an empty-value marker and assumes each routine is called only once in that block. It describes alert plumbing rather than the underlying signal rules, and gives no evidence about signal accuracy, trading results, or execution quality. Price and spread handling, bar selection, and duplicate-alert behavior should be verified in the specific indicator implementation.

Key ideas

  • The indicator can send sound, email, and push notifications for buy and sell signals.
  • Inputs control which bar is checked and how many alerts may be sent.
  • Signal routines read the corresponding arrow buffer and include chart and price details in messages.
  • The routines must be integrated after the indicator’s calculation cycle.
  • The document explains notification delivery but does not assess the underlying signal’s trading performance.

Tags

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