Skip to content

About the ADX + MA Expert Advisor

The ADX + MA Metatrader 4 Expert Advisor combines the Average Directional Index (ADX) with Moving Average trend filters to create a rules-based trading system that targets strong trending moves while avoiding choppy markets.

The EA looks for ADX-confirmed momentum and aligns entries with moving average direction and crossover logic.

Designed for clarity and robustness, this EA is suitable for major currency pairs and adaptable across multiple timeframes depending on your risk appetite and trading style.

Free Download

Download the “MADX-07.mq4” MT4 robot

Key Features

ADX Momentum Filter

Uses ADX threshold levels to detect and trade only when trend strength is above a configurable minimum, reducing false signals in range-bound markets.

Moving Average Trend Alignment

Applies one or more moving averages (SMA/EMA) to confirm trend direction; trades only in the trend’s direction to improve win rates.

Flexible Entry Logic

Supports MA crossovers, pullback entries to moving averages, or breakout entries—configurable to match scalping or swing preferences.

Smart Risk & Trade Management

Built-in risk-per-trade sizing, stop loss, take profit, trailing stops and time-based trade expiry keep drawdowns controlled and preserve gains.

Session and Spread Filters

Restricts trading to preferred sessions and enforces a maximum spread to avoid costly entries during low liquidity or high spreads.

Comprehensive Logging & Alerts

Detailed logging, on-chart markers and optional push/email alerts facilitate walk-forward testing and real-time monitoring of live trades.

Strategy Tester Report

Find below the ADX + MA robot strategy tester report for the EUR/USD forex pair on the 1-Hour chart.

Overall Performance

The EA made a total profit of $1533.37 from a total of 106 trades.

The largest winning trade generated $44.65 in profits, while no loss was reported during the testing period.

Statistics:

Bars in test: 3293 ticks modelled

Initial deposit: $2000.00

Total net profit: $1533.37

Total trades: 106

Largest profit trade: $44.65

Largest loss trade: -$0.00

Consecutive wins: 106

Consecutive losses: 0

How the EA Works

  • Monitors ADX to ensure trend strength exceeds a user-defined threshold.
  • Checks moving average alignment or crossover to define direction bias.
  • Generates entry signals on crossovers, pullbacks, or breakout triggers depending on the selected mode.
  • Places market or pending orders with user-defined stop loss and take profit.
  • Applies trailing stop or partial close rules to lock profits as the price moves favorably.
  • Uses session and spread filters to avoid poor execution conditions.
  • Logs each trade with reason codes to facilitate post-trade analysis and optimization.

Download Now

Download the “MADX-07.ex4” Metatrader 4 robot

Parameters & Settings

  • ADX Period and Threshold (minimum ADX to enable trades)
  • Moving Average Type (SMA/EMA), Periods, and Timeframes
  • Entry Mode (MA crossover, pullback to MA, breakout)
  • Order Type (market/pending), Max Spread, Slippage
  • Lot Sizing: fixed lot or risk percent per trade
  • Stop Loss, Take Profit, Trailing Stop, and Break-even settings
  • Time filters (sessions), News pause toggle, Magic Number
  • Logging level, alerts (email/push,) and optimization flags

Recommended Trading Setup

  • Pairs: EURUSD, GBPUSD, USDJPY for clearer trend behavior and tight spreads.
  • Timeframes: H1–H4 for trend trades; M15–H1 for shorter intraday strategies.
  • Broker: low-spread ECN broker with reliable execution.
  • Risk management: 0.5%–1.0% of account equity per trade when live.
  • Infrastructure: VPS located near broker servers for stable 24/5 operation.

FAQ

Can I customize the ADX threshold?

Yes—adjust the ADX threshold to be more selective in weak markets or more permissive during strong trending periods.

Does it work with multiple MAs?

Yes—the EA supports single or multiple moving averages for layered trend confirmation.

Is the EA affected by news?

You can enable news/session filters to prevent trading around major economic releases, reducing slippage risk.

How often should I optimize parameters?

Perform parameter reviews quarterly or after major market regime shifts; always validate optimizations with out-of-sample forward testing.\p>

Can beginners use this EA?

Beginners can use it, but they should start on demo accounts and follow conservative risk settings while learning the behavior of ADX and moving averages in live markets.

Summary

The ADX + MA Metatrader 4 Expert Advisor offers a practical, rule-based approach to trading trends by combining momentum strength with moving average alignment.

With configurable entry modes, solid risk controls, and clear visual logging, it is suitable for systematic traders who prefer transparent, testable strategies.

Always conduct thorough backtests and demo forward testing before deploying on live accounts to ensure the EA fits your risk profile and broker conditions.

Share this post!