Skip to content
All library documents

Adding Alerts to an RSI Overbought and Oversold Signal Indicator

Article MQL5 code base

Summary

The document explains how to extend a semaphore-style RSI indicator so it can notify traders when its buy or sell buffers contain a signal. It adds settings for the signal bar, sound alerts, alert count, email, and mobile push notifications. Separate functions check the selected buffer and assemble a message with the signal direction, price information, timestamp, symbol, and chart timeframe.

The example also describes calling each function after the indicator calculations in the platform's calculation routine, and notes that the indicator buffers must use zero or an empty value when no signal is present. The approach is an alerting integration, not a trading strategy or evidence of RSI profitability. Its behavior depends on correct buffer indexing and configuration; the document gives no backtest, performance results, or discussion of how RSI signals should be traded.

Key ideas

  • The indicator generates buy and sell notifications when its signal buffers show an RSI-based event.
  • Settings control the signal bar, sound, alert count, email, and mobile notifications.
  • The alert functions should run after indicator calculations and use the matching signal buffers.
  • Buffer entries without signals must be represented consistently as zero or an empty value.
  • The document describes implementation mechanics but provides no evidence of trading performance.

Tags

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