Skip to content
All library documents

EMA Shift Comparisons for Trend Direction in an RSI and Engulfing Strategy

Article MQL5 code base

Summary

The fragment describes a trend filter associated with a strategy named for RSI, EMA, and engulfing bars. It compares a longer-term and shorter-term exponential moving average using selectable historical shifts. Its example says that, for a buy condition, one EMA value from five bars ago is above another value from six bars ago; users may change the shift pair to other bar offsets. The stated interpretation is that the EMA relationship indicates a possible uptrend.

The excerpt does not specify RSI thresholds, engulfing-bar rules, trade exits, position sizing, or how the moving averages are calculated beyond their relative shifts. It also provides no market, timeframe, backtest, or performance evidence. Since the description is partial, it supports understanding only the EMA comparison idea, not reproducing or evaluating the complete strategy. A positive EMA relationship may be used as a directional filter, but the excerpt does not establish that it predicts returns.

Key ideas

  • The strategy fragment uses shifted EMA values as a possible trend-direction filter.
  • Its example buy condition compares EMA values from five and six bars earlier.
  • The historical shift pair can be changed to use different bars.
  • RSI and engulfing-bar entry rules are not explained in the excerpt.
  • No backtest or performance evidence is provided.

Tags

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