Expert Advisors: MQL5 Wizard - Trade Signals Based on Crossover of Main and Signal lines of MACD indicator
There is probably a bug in the code, it takes forever to trade :) The default one that comes with MT5
ExpertMACD
Expert_MagicNumber =10981;
trades much better.
Unfortunately, the CSignalMACD signal class was not appended to the standard library, but instead
an example of what a signal class should not look like,
instead of taking advantage of the properties of the base class when deriving a class
.../MQL5 $ diff Experts/Downloads/signalmacd.mqh Include/Expert/Signal/SignalMACD.mqh [...] .../MQL5 $
diff is attached because >64k characters...

- www.mql5.com
I also dont have have the "Signals based on crossover of main and signal MACD lines" in Wizard project. Only "signal of Macd oscilator". Where can I find it?
Hi
you don't need to generate any EA.
you must only put "signalMACD.mqh" downloaded file in "C:\Program Files\Alpari MT5 OFFLINE\MQL5\Include\Expert\Signal" path instead of original one.
then put "testMACD.mq5" in "C:\Program Files\Alpari MT5 OFFLINE\MQL5\Experts".
and now compile "testMACD.mq5" .
and run EA on sterategy tester.
it works.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
MQL5 Wizard - Trade Signals Based on Crossover of Main and Signal lines of MACD indicator:
MQL5 Wizard provides the automatic creation of Expert Advisors (see MQL5 Wizard: Creating Expert Advisors without Programming).
Here we will consider the trading signals, based on crossover of MACD indicator lines. The strategy called "Signals based on crossover of main and signal MACD lines" (when creating EA automatically in MQL5 Wizard).
The main line of MACD indicator is calculated as a difference of fast EMA and slow EMA. The signal line of MACD is calculated as the main line, smoothed with PeriodSignal period.
The trade signals:
Author: MetaQuotes Software Corp.