Skip to content
All library documents

AMA and RSI Entry Signals with Loss-Responsive Martingale Sizing

Article MQL5 code base

Summary

This Expert Advisor checks for signals only when a new bar begins and combines the Adaptive Moving Average with the Relative Strength Index. A buy setup uses a two-stage sequence: RSI must fall below the configured lower level, set to 30 in the example, and price must then cross above the adaptive average. A parameter sets the permitted bar distance between those events. The description says the sell signal uses the corresponding sell logic but does not spell out its exact thresholds and crossing conditions.

Position handling applies a martingale-like rule separately to long and short positions. On a new order signal, if existing positions in that direction have negative profit, the EA opens two positions; otherwise it opens one. The page also mentions changes in version 2, including time controls and trailing lot-size control. It gives no backtest, performance figures, stop-loss method, or risk limits. Doubling exposure after losses can increase drawdowns, and the signal and sizing rules are not enough to establish expected profitability.

Key ideas

  • The EA evaluates signals at the start of each new bar.
  • A buy signal combines an RSI reading below its configured threshold with a later price move above AMA.
  • The Step Length parameter limits the bars between the two signal conditions.
  • After a signal, the EA opens two positions in that direction when existing directional positions are losing, otherwise one.
  • The document provides no performance evidence or detailed risk controls for the loss-responsive sizing rule.

Tags

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