Skip to content
All library documents

RSI Expert EA: New-Bar Trading and Optional Moving-Average Filters

Article MQL5 code base

Summary

This document gives a brief description of an Expert Advisor based on the RSI indicator. It evaluates trading logic only when a new bar appears, and RSI is always used. Moving-average indicators are conditional on a setting that enables trading with a moving-average filter. The description does not specify the RSI thresholds, moving-average rules, markets, or timeframes, so the full entry and exit strategy cannot be reconstructed from this text.

The EA also allows stop loss, take profit, and trailing stop settings to be disabled by setting their values to zero. Position size can be fixed or determined dynamically from a risk percentage per trade. The document says the EA can run on netting accounts, but warns that results there are unpredictable. It provides no performance results or backtest evidence, and gives no further detail on how risk percentage translates into order size.

Key ideas

  • The EA checks its trading logic only when a new bar appears.
  • RSI is always used, while moving-average indicators depend on an optional setting.
  • Stop loss, take profit, and trailing stop can each be disabled with a zero setting.
  • Position sizing can use a fixed lot or a risk percentage per trade.
  • The document warns that behavior on netting accounts is unpredictable and provides no performance evidence.

Tags

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