Dealers Trade v 7.74 MACD
This EA trades based on MACD signal crossovers and momentum shifts, entering positions when the MACD histogram crosses the signal line with configurable filters for trend confirmation. It includes position management features such as trailing stops, break-even logic, and partial close capabilities to lock in profits.
Open the interactive view (equity curve, symbol switch)Key facts
Backtest results (H1, about 1 year)
| Symbol | P&L | Annual | Max DD | Trades | Win rate | Sharpe | Recovery | Losing streak | Per trade | Status |
|---|---|---|---|---|---|---|---|---|---|---|
| EURUSD | -5.38% | -4.69% | 10.25% | 102 | 46.10% | -1.20 | -0.53 | 7 | −$5.27 | Reliable |
| GBPUSD | -11.37% | -9.96% | 12.65% | 102 | 39.20% | -2.00 | -0.90 | 6 | −$11.15 | Reliable |
| USDJPY | -7.48% | -6.54% | 10.35% | 99 | 36.40% | -1.76 | -0.72 | 7 | −$7.56 | Reliable |
| XAUUSD | +59.26% | +46.89% | 50.68% | 102 | 48.00% | 1.10 | 1.17 | 10 | +$58.10 | Reliable |
Profitable on 1 of 4 markets with reliable results.
Converted from MQL5 to Python and run with the same rules for every EA. Positions use MT5 lot sizes (100,000 units per FX lot, 100 oz per gold lot) with 1:100 leverage, one order at a time, and a stop-out below 10% of the starting balance. Sharpe is computed from the equity curve. Results marked as unreliable are shown for completeness only.
Against the other Momentum EAs with a reliable result on the same market: EURUSD: better than 15% of 68 · GBPUSD: better than 8% of 66 · USDJPY: better than 6% of 68 · XAUUSD: better than 81% of 75
Month by month
| Market | Months with a gain | Best month | Worst month |
|---|---|---|---|
| EURUSD | 54% | +1.03% 2026-09 | -3.55% 2026-04 |
| GBPUSD | 23% | +0.90% 2026-08 | -4.01% 2026-04 |
| USDJPY | 38% | +1.18% 2025-11 | -2.24% 2026-04 |
| XAUUSD | 54% | +50.32% 2026-01 | -25.20% 2026-04 |
From the backtest equity curve, sampled about every two days; only reliable results.
Blow-up risk: No blow-up pattern found
- Can hold up to 2 positions at once
On its own this is not a typical blow-up pattern, and the account was not stopped out in our backtests. That is not a guarantee: any EA can lose money.
High: stopped out in our backtest, or martingale/grid sizing without a stop loss. Elevated: martingale or grid sizing with a stop loss, or several positions at once without a stop loss. What the label means and what we found →
Strategy analysis
The core strategy of this EA is MACD momentum trading, using the crossover of the MACD main line and signal line as entry signals — going long when the MACD histogram crosses from negative to positive, and going short when it crosses from positive to negative. Entry conditions may include additional trend direction and volatility filters beyond the MACD crossover to avoid frequent entries in ranging markets. Exit conditions consist of fixed take-profit and stop-loss levels, trailing stops, and break-even logic that activates once price moves a configured number of points in the favorable direction. Position sizing uses either fixed lots or balance-proportional lot calculation, and supports both position addition and partial close operations. Money management incorporates maximum position limits and daily drawdown caps, though specific values depend on user configuration parameters.
Strengths
- MACD is a well-established classic indicator with clear signal logic suitable for medium-to-long-term trend trading
- Comprehensive position management features including trailing stop and break-even logic effectively protect profits
- Highly configurable parameters allow traders to flexibly adjust strategy for different instruments and timeframes
Weaknesses
- MACD as a lagging indicator tends to generate false signals in ranging markets leading to consecutive losses
- Lacks multi-timeframe confirmation mechanism, reducing reliability of single-timeframe MACD signals
- No integrated spread filter or news event filter, potentially entering during unfavorable high-volatility conditions
Possible improvements
- Add multi-timeframe trend confirmation, e.g., confirm trend direction on H4 then seek entry signals on M15/M30
- Incorporate spread and volatility filters to avoid entering when trading costs are too high or markets are highly volatile
- Introduce adaptive stop-loss using ATR-based dynamic stop distances instead of fixed pip values
Risk assessment
Overall risk: Medium
- MACD lagging nature may produce consecutive false signals in ranging markets
- Fixed stop-loss may not adapt to varying market volatility conditions
- Lack of multi-timeframe confirmation increases risk of counter-trend entries
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
MacdFastEMA | 12 | MACD fast EMA period |
MacdSlowEMA | 26 | MACD slow EMA period |
MacdSignalSMA | 9 | MACD signal SMA period |
LotSize | 0.1 | Initial lot size |
StopLoss | 500 | Stop loss in points |
TakeProfit | 1000 | Take profit in points |
TrailingStop | 300 | Trailing stop in points |
BreakEven | 200 | Break-even trigger in points |
MaxPositions | 3 | Maximum positions |
MagicNumber | 77001 | EA magic number |
Similar Momentum EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.