Skip to content
All library documents

Adding Alerts to a PPO Signal Indicator

Article MQL5 code base

Summary

The document explains how to add notifications to a PPO-based semaphore indicator that marks buy and sell signals. It describes inputs for choosing the signal bar, enabling sound alerts, limiting alert counts, and optionally sending email or mobile push messages. Separate routines check the indicator’s buy and sell buffers, determine the corresponding bar index, and compose a notification with time, symbol, timeframe, and price information.

The method relies on the underlying indicator’s existing buffers and calculation cycle; it does not explain how the PPO signals themselves are derived or assess their trading value. The sample also depends on platform settings and a smoothing library, and its alert counter resets when the bar count changes. No backtest, performance evidence, or discussion of signal reliability is provided, so these additions improve delivery of signals rather than validate them.

Key ideas

  • The indicator can issue sound alerts, email messages, and mobile notifications for buy and sell buffer events.
  • Users can select a bar for signal checking and set an alert limit.
  • Notification text can include the time, symbol, timeframe, and prices derived from the selected bar and spread.
  • The additions do not define or test the underlying PPO signal logic.

Tags

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