Skip to content
All library documents

MT5 RSI Alerts at 20 and 80 Using a 30-Period RSI

Article MQL5 code base

Summary

This document describes a MetaTrader 5 alert bot based on the relative strength index. It specifies a 30-period RSI calculated from weighted prices, with a buy alert when the indicator is at or below 20 and a sell alert when it is at or above 80. The upper and lower thresholds, applied price, and alert labels are exposed as inputs, so a user can adjust the settings.

The material gives the signal rules and parameter defaults but provides no code, chart examples, backtest, or live performance evidence. It describes alerts rather than trade execution, and it does not explain how positions should be sized, managed, or exited. RSI threshold signals can behave differently across instruments and market conditions; the document offers no validation that these particular levels are profitable or suitable for any market.

Key ideas

  • The bot uses RSI threshold crossings to generate buy and sell alerts.
  • The default RSI period is 30 and the applied price is weighted price.
  • A reading at or below 20 triggers a buy alert, while a reading at or above 80 triggers a sell alert.
  • The document provides no testing evidence or position management rules.

Tags

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