Skip to content
All library documents

RSI Threshold Crossings With Reversal Signals and Configurable Exits

Article MQL5 code base

Summary

The document describes a simple expert advisor that trades when the Relative Strength Index crosses configured thresholds. It opens a buy when RSI crosses the lower level upward and a sell when RSI crosses the upper level downward. To reduce signals caused by temporary level crossings, it checks two completed bars. A signal in the opposite direction closes existing positions of the prior type and opens one position in the new direction.

Position size is fixed through a parameter, while stop loss, take profit, and trailing stop settings can be configured or disabled. The document identifies a USD/JPY, 15-minute chart context, but gives no threshold values, backtest results, or performance comparison. It does not discuss market regimes, transaction costs, slippage, or risk-based sizing. The strategy is therefore a basic implementation outline; readers would need to test parameter choices and execution assumptions before drawing conclusions about its trading value.

Key ideas

  • A buy signal occurs when RSI crosses the lower threshold upward.
  • A sell signal occurs when RSI crosses the upper threshold downward.
  • The signal check uses two bars to account for temporary threshold crossings.
  • An opposite signal closes positions in the existing direction and opens a position in the new direction.
  • Trade size is fixed, while stop loss, take profit, and trailing stop settings are configurable.

Tags

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