Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Views:
18615
Rating:
(5)
Published:
2008.05.21 07:59
Updated:
2016.11.22 07:32
ADX_MA.mq4 (4.12 KB) view
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

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.

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):

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:

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


    Translated from Russian by MetaQuotes Ltd.
    Original code: https://www.mql5.com/ru/code/8088

    ZZ_CheckingFonts 0-0020 & ZZ_DeleteFonts 0-0010 ZZ_CheckingFonts 0-0020 & ZZ_DeleteFonts 0-0010

    A script tool for those who develop programs in MQL4. It allows to display the contents of any font in your chart.

    Painter_v1 Painter_v1

    Indicator colours prices of certain areas hh: mm_start before hh: mm_finish.

    Triggerlines Shift Modified Triggerlines Shift Modified

    Indicator Triggerlines Shift Modified.

    Tickwatcher 2.0 Tickwatcher 2.0

    Another indicator showing recommendations for each currency pair and period.