Download MQ L5 Wizard - Trade Signals Based on Price Crossover with Moving Average, confirmed by AD X for MetaTrader 5

MQ L5 Wizard - Trade Signals Based on Price Crossover with Moving Average, confirmed by AD X

MQ L5 Wizard - Trade Signals Based on Price Crossover with Moving Average, confirmed by AD X

This tool for MetaTrader 5 is specifically engineered to streamline your trading operations. This Expert Advisor serves as automated trading software. It is utilized to monitor financial markets and execute trades based on predefined algorithmic rules, enabling precise position management without the need for constant manual oversight.

MT5 expert Pack 📂

How to Setup and Use MQ L5 Wizard - Trade Signals Based on Price Crossover with Moving Average, confirmed by AD X

1. Installation: Open the "File" menu, select "Open Data Folder," navigate to MQL/Experts, paste your file, and restart the terminal.

2. Activation: Drag the EA from the Navigator onto a chart, ensure "Allow live trading" is checked in the Common tab, and verify the AutoTrading button is green.

3. Optimization: Right-click your chart, choose "Expert List," click "Properties" to adjust inputs, and save your preferred setup as a set file for future use.

4. Maintenance: Regularly check the "Experts" tab in the terminal window to monitor trade logs and potential execution errors.

Frequently Asked Questions

Q: Why is my EA not opening trades? A: Check the "AutoTrading" button, ensure "Allow live trading" is enabled, and verify your broker allows automated trading on your account type.

Q: Can I run multiple EAs on one chart? A: No, each chart can only host one active EA; however, you can open multiple charts for different currency pairs to run several EAs.

Q: What does the "smiley face" icon mean? A: A smiley face in the top-right corner of the chart indicates the EA is successfully running; a frowny face means it is disabled.

Description & Settings


allows to create the code of Expert Advisors automatically. See for the details.
Here we will consider the strategy based on price crossover with Moving Average indicator, confirmed by ADX indicator. The strategy called
"
Signals based on price crossover with MA confirmed by ADX
"
(when creating EA automatically in MQL5 Wizard).
The trade signals:

Buy: closing price of the last completed bar is higher than moving average, the moving average increases at the current and last completed bars.

Sell: closing price of the last completed bar is lower than moving average, the moving average decreases at the current and last completed bars.

To filter the false signal, it checks the trend power (ADX>ADXmin) and trend direction using the Directional Movement Indexes (DI+ and DI-).
This strategy is implemented in CSignalADX_MA class (it must be placed to terminal_data_folder\MQL5\Include\Expert\Signal\SignalADX-MA.mqh).
Figure 1. Trade signals based on price crossover with Moving Average, confirmed by ADX
Trade Signals
The trading strategy is implemented in CSignalADX_MA class, it has some protected methods to simplify access to indicators and price values:
The feature of this implementation is additional checking of trend presence (using the Directional Movement Indicator). It allows to filter false signals and check trading conditions using the values of the current (uncompleted) bar.
1. Open long position
Conditions to open long position:

StateEMA(0)<0 и StateEMA(1)>0: moving average increases on the current and last completed bar;

StateClose(1)>0: closing price of the last completed bar is higher than moving average;

MainADX(0)>minimum_ADX: the ADX value of the current bar is greater than specified minimal value (for checking of trend presence);

StateADX(0)>0: The DI+ is greater than DI- of the current bar.
2. Close long position
Conditions to close long position:

StateEMA(0)<0 и StateEMA(1)<0: moving average decreases on the current and last completed bar;

StateClose(1)<0: the closing price of the completed bar is lower than moving average;

MainADX(0)>minimum_ADX: the ADX value of the current bar is greater than specified minimal value (for checking of trend presence);

StateADX(0)<0: The DI- is greater than DI+ of the current bar.
3. Open short position
The conditions to open short position are the same as long position closing conditions.
4. Close short position
The conditions to close short position are the same as long position opening conditions.
Creating Expert Advisor using MQL5 Wizard
To create a trading robot based on the strategy you need to choose the signal properties as "
Signals based on price crossover with MA confirmed by ADX
" in "Creating Ready-Made Expert Advisors" option of :
Figure 2. Choose "Signals based on price crossover with MA confirmed by ADX" in MQL5 Wizard
The next you have to specify the needed algorithm and system. The code of Expert Advisor will be created automatically, you can compile it and test in of MetaTrader 5 client terminal.
Testing Results
Let's consider backtesting of the Expert Advisor on historical data (EURUSD H1, testing period: 1.1.2010-05.01.2011, PeriodADX=33, MinimumADX=22, PeriodMA=39, StopLoss=400, TakeProfit=900).
In creation of Expert Advisor we used the fixed volume (, 0.1), Trailing Stop algorithm is not used ().
Figure 3. Historical backtesting results of the Expert Advisor, based on price crossover with MA confirmed by ADX
Attachments:
The SignalADX-MA.mqh with CSignalADX_MA class must be placed to terminal_data_folder\MQL5\Include\Expert\Signal\.
The ma_crossover_adx.mq5 contains the code of the Expert Advisor, created using MQL5 Wizard.

You May Also Like

RobotFX does not own any of the code provided on this platform. All tools are freely available on the internet; we simply index and re-offer them for download. We are not responsible for any financial losses that may occur. Trading responsibilities rely solely on the traders downloading and using the displayed Expert Advisors, indicators, and scripts. These tools are provided for educational purposes only and may require modification or optimization to align with a trader's specific strategy or needs.
© ROBOTFX - Best MetaTrader Expert Advisors & Indicators