Skip to content
All library documents

ADX, Williams %R, and EMA Trigger Logic for a Short-Term Forex EA

Article MQL5 code base

Summary

The document describes a EURUSD expert advisor that combines ADX, CCI, RVI, Williams %R, and EMA signals. It can enter with a moving-average trigger, without one, or through both paths. Its suggested setup process optimizes the ADX and Williams %R strategies separately, then tunes the trigger and additional-trade options. The EA is presented as suitable for multiple timeframes, with M1 identified as the preferred one.

A backtest covers EURUSD from January 2013 to September 2014, using tick-based modeling reported at 99.90% quality. It records 513 trades and a profit factor of 3.61, but also a 74.71% maximum drawdown; the average losing trade is much larger than the average winning trade. These results are a historical test, not evidence of future performance. The report gives no out-of-sample validation, and its high drawdown and loss-management settings warrant caution when interpreting the strong win rate and net profit.

Key ideas

  • The EA combines ADX, CCI, RVI, Williams %R, and EMA signals to time trades.
  • The user can configure entries with a moving-average trigger, without a trigger, or through both modes.
  • The suggested optimization process tunes ADX and Williams %R settings separately before adjusting trigger options.
  • The reported EURUSD backtest has a high maximum drawdown despite a high proportion of winning trades.
  • The historical test alone does not establish that the strategy will perform similarly in future markets.

Tags

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