Trade Signals Based on Price Crossover with Moving Average, Confirmed by ADX

Trade Signals Based on Price Crossover with Moving Average, Confirmed by ADX
Download ALL MT5 experts (1558)
YouTube Video Thumbnail



Similar MetaTrader Tools

Trade Signals Based on Price Crossover with Moving Average, Confirmed by ADX

Info

The Trade Signals Based on Price Crossover with Moving Average, Confirmed by ADX is a Expert Advisor for MetaTrader 5 that this strategy is based on price crossover with moving average indicator, confirmed by adx indicator. The trade signals are generated as follows:- Buy: closing price of the last completed bar is higher than moving average, the moving average increases at the current and last completed bars.

Usage

This tool is typically used for automated trading on major forex pairs and gold.

Platform

This Expert Advisor works exclusively on MetaTrader 5 (both build 600+ and newer versions).

Setup

Place the downloaded file in MQL5/Experts folder via File ? Open Data Folder in MetaTrader 5.


How to Install and Use Trade Signals Based on Price Crossover with Moving Average, Confirmed by ADX

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.

What this tool does

This strategy is based on price crossover with Moving Average indicator, confirmed by ADX indicator.

Typical Use Case

This Expert Advisor excels in automated trading and technical analysis on MetaTrader 5.

Compatible Platform & Setup

This Expert Advisor works on MetaTrader 5. Place the file in the MQL5/Experts folder and restart the terminal.

Description & Settings

Related: KS Q Command Center: Remote Trade Management for MetaTrader 5 - another powerful expert for MetaTrader 5 traders.

This strategy is based on price crossover with Moving Average indicator, confirmed by ADX indicator.

Also recommended: Quantum XAUUSD Silver Trader - similar expert with strong performance on MetaTrader 5.


The trade signals are generated as follows:
- 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 false signals, the strategy checks the trend power (ADX > ADXmin) and trend direction using the Directional Movement Indexes (DI+ and DI-).

The strategy is implemented in the CSignalADX_MA class, which has protected methods to simplify access to indicators and price values.

Conditions to open long position:
- StateEMA(0) < 0 and 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.

Conditions to close long position:
- StateEMA(0) < 0 and 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.

Conditions to open short position are the same as long position closing conditions.
Conditions to close short position are the same as long position opening conditions.

To create a trading robot based on this strategy, choose the signal properties as "Signals based on price crossover with MA confirmed by ADX" in the "Creating Ready-Made Expert Advisors" option of MQL5 Wizard.

Backtesting results of the Expert Advisor on historical data (EURUSD H1, testing period: 1.1.2026-05.01.2026, PeriodADX=33, MinimumADX=22, PeriodMA=39, StopLoss=400, TakeProfit=900) are available.

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: Prime Quantum AI: AI-Powered Trading with MetaTrader 5 - excellent alternative for expert users on MetaTrader 5.


Leave your opinion, ask a question, share some knowledge

Limitations & Risk Warning

  • This tool is provided for educational and testing purposes only.
  • Past performance does not guarantee future results.
  • Trading involves substantial risk of loss. Use on a demo account first.
  • Results may vary depending on market conditions, broker, and settings.
  • We recommend thorough backtesting and forward testing before using with real funds.
© ROBOTFX Free educational tools by RobotFX. Use entirely at your own risk; we are not liable for any financial losses incurred.