Skip to content
All library documents

Combining RSI and Moving Average Filters for Directional Signals

Article MQL5 code base

Summary

This MetaTrader 5 indicator combines a moving average with the Relative Strength Index to mark directional signals. A buy arrow appears when the close is described as outside the moving average and RSI is above 50; a sell arrow appears when price is below the moving average and RSI is below 50. The indicator is intended for manual chart use or as a signal source for an Expert Advisor, and its RSI and moving-average periods can be adjusted.

The rules use the moving average as a trend filter and the RSI midpoint as a momentum filter, requiring both conditions to agree before displaying an arrow. The document provides no backtest, market-specific evaluation, exit rules, position sizing, or risk controls, so it does not establish profitability or suitability. It also leaves the buy-side phrase “outside the Moving Average” imprecise, making the exact price comparison less clear than the sell condition.

Key ideas

  • The indicator combines price relative to a moving average with RSI position around 50.
  • A buy signal requires RSI above 50 and a close described as outside the moving average.
  • A sell signal requires price below the moving average and RSI below 50.
  • The RSI and moving-average periods are configurable, and arrows can feed manual or automated workflows.
  • The document provides no performance evidence, exit method, or risk-management rules.

Tags

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