Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

Discover: Metatrader 4 Experts | ADX & MA | MQL5 Code

Fresh MQL5 code release – perfect for enhancing your MT4/MT5 strategies.

The strategy is based on two indicators: ADX and MA.


The system is described in more details here. A detailed article about testing of this system is available in our magazine's issue from 21.04.2008. You can discuss it or make suggestions on our forum.

Watch in-depth trading tutorials and EA reviews on the RobotFX YouTube channel. Subscribe for free tips.

Trading Strategy Algorithm:

1. Open a daily chart for EURUSD, lots 0.1.

2. Draw an ADX with the period of 14, mark level 20 in the indicator.

3. Draw an MA with the period of 21.

Buying signal: The bar closes above MA, and the ADX line is above 20.
Selling signal: The bar closes below MA, and the ADX line is above 20.

In both cases, trades should be closed, as soon as the bar intersects the MA in the opposite direction.

Having tested the above rules on the period from 2007.01.11 to 2008.01.11, we obtained the following results (At close prices):

Image for ADX & MA

We added TakeProfit, StopLoss, TralingStop, the values being added separately for buying and for selling. Having optimized the new parameters on the same period, we obtained the following result for the EA:

Image for ADX & MA

You can find the results of a forward test outside the optimization area in our magazine's issue from 21.04.2008.


    Level up your trading with professional RobotFX expert advisors and indicators. Visit robotfx.org for proven MT4/MT5 tools.

    8088

    Best MetaTrader Indicators + Profitable Expert Advisors