Skip to content
All library documents

RSI Divergence Entries and Momentum-Based Trade Exits

Article MQL5 code base

Summary

The document describes an automated trading system that can enter on RSI divergence or on classic overbought and oversold reversals. Bullish divergence means price makes a lower low while RSI forms a higher low; bearish divergence means price reaches a higher high while RSI makes a lower high. An optional confirmation waits for RSI to cross the 50 centerline before placing a trade. The divergence lookback is configurable, with 60 bars given as the default.

Positions use fixed stop-loss and take-profit levels, alongside a dynamic RSI exit that closes longs at overbought readings or shorts at oversold readings; 70 and 30 are examples. A unique trade identifier limits management to positions opened by this system. The text explains configurable signal and exit logic, but supplies no backtest, market-specific parameters, or evidence that the signals are profitable. Its rules therefore describe an implementation concept rather than a validated strategy.

Key ideas

  • The primary entry method looks for disagreement between price extremes and RSI extremes.
  • An alternative entry method uses conventional RSI overbought and oversold reversals.
  • An optional RSI centerline cross can confirm a signal before entry.
  • Fixed protective exits are combined with RSI-based dynamic exits.
  • The document provides no performance testing or market-specific validation.

Tags

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