Skip to content
All library documents

RSI Expert Advisor Options for Moving Averages and Martingale Sizing

Article MQL5 code base

Summary

This description outlines additions to a revised RSI-based expert advisor: more detailed indicator settings, two moving averages, martingale sizing, and lot calculation as a percentage of account balance. The underlying RSI trading principle is not restated, so the entry and exit rules for the base strategy cannot be assessed from this text alone.

The moving averages can be disabled, used as a directional filter, or used in reverse. In direct mode, a fast average above the slow average permits buys, while a fast average below it permits sells; reverse mode swaps those permissions. In martingale mode, a new signal in a direction doubles the prior lot if the previous trade in that direction is losing. Alternatively, percentage-of-balance sizing adjusts lots with balance changes and skips a trade if the calculated size is below the permitted minimum. No performance evidence, risk limits, or safeguards for escalating exposure are provided.

Key ideas

  • The revised EA adds configurable indicators, two moving averages, martingale sizing, and balance-based lot sizing.
  • The moving-average filter can permit trades in the cross direction or in the opposite direction.
  • Martingale mode doubles the prior lot after a losing trade in the same direction when another signal appears.
  • Percentage-of-balance mode recalculates lot size as balance changes and skips undersized trades.
  • The document does not explain the base RSI rules or provide performance and risk evidence.

Tags

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