Expert Advisors: MQL5 Wizard - Trade Signals Based on Three Moving Averages

 

MQL5 Wizard - Trade Signals Based on Three Moving Averages:

MQL5 Wizard allows to create the code of Expert Advisors automatically. See Creating Ready-Made Expert Advisors in MQL5 Wizard for the details.

Here we will consider the trend strategy, based on three moving averages. The strategy called "Signals based on three EMA". To determine the trend, it uses three exponentially smoothed moving averages: FastEMA, MediumEMA and SlowEMA.

Trade signals:

  • Buy signal: FastEMA>MediumEMA>SlowEMA (upward trend).
  • Sell signal: FastEMA<MediumEMA<SlowEMA (downward trend).
  • Figure 1. Trade signals, based on three moving averages

    Historical backtesting results of the Expert Advisor, based on three EMA

Author: MetaQuotes Software Corp.


 

When compiling it gives errors, see skin

Files:
1.jpg  344 kb
 
ZahvatkiN:

It gives errors when compiling, see skin

place the Signal3EMA.mqh file in the Expert\Signal folder
 

also gives an error....I did it according to the instructions : put the Signal3EMA.mqh file in the Expert\Signal folder

The code of the Expert Advisor created by the MQL5 Wizard is attached in the file threeema.mq5. placed it in the adviser folder, but it does not compile

 
but I don 't have this ( "Signals based on three EMAs") in my signals !!! where can I get it? I threw theSignal3EMA.mqh file into both Expert\Signal and Expert\Signal\MySignals! And this one ( threeema.mq5) works for me.
 
In my opinion, here, the FastEMA<MediumEMA condition is enough to close a long position, and FastEMA>MediumEMA to close a short position and don't look at SlowEMA.
This website uses cookies. Learn more about our Cookies Policy.