Skip to content
All library documents

Basic RSI and CCI Agreement Rules for Forex Entries

Article MQL5 code base

Summary

This expert advisor checks its signals when a new bar appears. It generates a buy condition when RSI exceeds its upper threshold and CCI exceeds its upper threshold; a sell condition requires both indicators to fall below their respective lower thresholds. A position is opened when the two indicators agree, using a configured lot size. Stop loss, take profit, and trailing stop can each be disabled by setting the relevant parameter to zero.

The document identifies EURUSD on a 15-minute chart and says optimization covered a period from May to August 2018. It provides no numerical performance results, details of the selected thresholds, or out-of-sample evidence, so the mention of optimization is not enough to establish robustness. The rules are a basic indicator-combination example; the source does not explain position exits beyond the optional protective orders or describe broader portfolio risk controls.

Key ideas

  • A buy requires both RSI and CCI to exceed their upper thresholds.
  • A sell requires both RSI and CCI to fall below their lower thresholds.
  • The advisor evaluates signals at the opening of a new bar and uses a configured lot size.
  • Stop loss, take profit, and trailing stop settings can be disabled individually.
  • The document mentions an EURUSD 15-minute optimization period but gives no performance figures or out-of-sample results.

Tags

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