Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Difference of Two Moving Averages - MetaTrader 5 Expert | Forex Indicator Download - MT4/MT5 Resources

author EAcpu | 3 reads | 0 comments |

Difference of Two Moving Averages - expert for MetaTrader 5

This Expert Advisor was developed after observing when two moving averages diverge and converge. There is usually the greatest difference between the instantaneous values ​​of the two moving averages before a change in trend occurs.

The difference between the two moving averages is amplified by a nonlinear cubic transfer function to distinguish major and minor shifts from zero. The final step is a simple horizontal discriminator with high and low thresholds that responds to primary exclusions before signaling a trend change.

Although the default settings of the advisor produced good optimization results during the last tournament using EURUSD using the 1H time frame, it showed the usual characteristic of requiring different parameters in different time periods to obtain optimal results.

In order to reduce the optimization time, the advisor does not use custom indicators, although a custom delta indicator is included for use with the strategy tester in visualization mode and this indicator can be disabled in the optional line GI=iCustom(NULL,0,"madelta_inc",d,m,F,FM,FP,S,SM,SP);; this indicator demonstrates the operation of a cubic function with high and low thresholds, the signal color changes to yellow for buy and red for sell.

Difference of Two Moving Averages - expert for MetaTrader 5

suggestion:

I welcome any suggestions on how this advisor can optimize itself to produce consistent results over different time frames.


Attachment download

📎 madelta_inc.mq5 (3.5 KB)

📎 madelta_ea.mq5 (4.21 KB)

Source: MQL5 #1554

Verification code Refresh