Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2013.02.28 09:47
Experts

Difference of Two Moving Averages - expert for MetaTrader 5

| English Русский 中文 Español Deutsch 日本語 Português

Views:
10562
Rating:
votes: 33
\MQL5\Indicators\
madelta_ea.mq5 (4.21 KB)view

This expert advisor has been developed after observing when two moving averages diverge and converge, there is a typically a maximum difference between the instantaneous values of the two moving averages before the trend changes.

The difference of the two moving averages is amplified by a non-linear cubic transfer function to differentiate between major and minor excursions from zero.  The final step is a simple level discriminator with high and low thresholds which responds to the major excusions before signalling a change of trend.

Whilst this advisor with default settings produces good optimised results over the period of the last Championship using 1H time frame with EURUSD, it exhibits the usual characteristic of requiring different parameters for optimum results over a different time period.

In the interest of reducing optimisation time the advisor does not use a custom indicator, although a custom incremental indicator is included for use with the strategy tester in visualisation mode and this can be disabled in the optional line  GI=iCustom(NULL,0,"madelta_inc",d,m,F,FM,FP,S,SM,SP); The indicator demonstrates the operation of the cubic function with high and low threholds and the signal colour changes to yellow for buy and red for sell.

Test results

Recommendations:

I welcome any suggestions as to how this advisor could become self optimising so as to produce consistent results over different time frames. 

    FractalAMA FractalAMA

    The fractal adaptive Moving Average by John Ehlers. Version 1.1 7/17/2006

    EMA-Crossover_Signal EMA-Crossover_Signal

    The simplest semaphore signal indicator based on different period Moving Averages

    ElliottWaveMaker 3.0 ElliottWaveMaker 3.0

    ElliottWaveMaker 3.0 is Tool for Semi-Automatic Analysis of Elliott Waves and Andrew's Pitchforks, a logical extension of version 2.0 known as AutoElliottWaveMaker. In version 3.0 minor errors are corrected, the ability to draw Andrew's Pitchforks and a few additional functions are added.

    EMAAngle EMAAngle

    An interesting trend indicator drawn on the basis of the simple Moving Average