MAMACD
MAMACD is an Expert Advisor that combines Moving Average crossover signals with MACD momentum confirmation to generate trade entries. It opens buy positions when the fast MA crosses above the slow MA and MACD confirms bullish momentum, and sells on the reverse condition. The EA uses fixed lot sizing and applies stop loss and take profit for trade management.
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 | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Conversion problem |
| GBPUSD | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Conversion problem |
| USDJPY | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Conversion problem |
| XAUUSD | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Conversion problem |
Why this EA never traded: no entry rule survived the conversion.
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.
Blow-up risk: No blow-up pattern found
- Has no stop loss or trailing stop
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 EA's strategy concept is based on dual-indicator confirmation: Moving Average crossover serves as the trend direction signal while MACD acts as a momentum confirmation filter, requiring both conditions to be met simultaneously before triggering a trade. Entry conditions are a long position when the fast MA crosses above the slow MA and the MACD histogram is positive, and a short position when the fast MA crosses below the slow MA and the MACD histogram is negative. Exit conditions rely on preset stop loss and take profit levels, with no trailing stop or dynamic exit mechanism implemented. Position sizing uses a fixed lot approach without dynamic adjustment based on account balance or market volatility. Money management lacks risk-per-trade percentage calculation, meaning the risk exposure per trade does not scale with account equity changes. Overall the strategy logic is clear but relatively basic, lacking adaptability to changing market conditions.
Strengths
- Dual-indicator confirmation mechanism reduces the probability of false signals, with MA and MACD working together to filter out noisy trades
- The strategy logic is simple and clear with intuitive parameter meanings, making it easy for traders to understand and optimize
- Stop loss and take profit are configured, providing a basic risk control framework to prevent unlimited loss on any single trade
Weaknesses
- Fixed lot sizing does not adjust with account size, potentially over-risking on small accounts and under-utilizing capital on large accounts
- Lack of trailing stop mechanism means profitable trades may give back most gains during pullbacks before reaching take profit
- No market regime filter (e.g., ranging market filter) — MA crossover strategies tend to generate frequent false signals in sideways markets leading to consecutive losses
- No new bar check mechanism, which may result in multiple entries within the same candle
Possible improvements
- Introduce dynamic position sizing based on account balance and ATR volatility, calculating risk percentage per trade (e.g., 1%-2% account risk)
- Add ADX or volatility filter to pause trading during ranging markets, reducing losses from false signals
- Implement trailing stop functionality to lock in partial profits after reaching a certain threshold, improving the final return of winning trades
- Add new bar check to ensure each signal is only traded once per candle
Risk assessment
Overall risk: Medium
- Fixed lot size without dynamic adjustment based on account size creates potential for excessive risk exposure
- Lack of market regime filter may produce consecutive false signals in ranging markets leading to multiple stop losses
- No new bar check creates risk of repeated entries on the same candle
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
FastMA_Period | 12 | Fast moving average period |
SlowMA_Period | 26 | Slow moving average period |
MACD_FastEMA | 12 | MACD fast EMA period |
MACD_SlowEMA | 26 | MACD slow EMA period |
MACD_SignalSMA | 9 | MACD signal SMA period |
LotSize | 0.1 | Fixed trading lot size |
StopLoss | 50 | Stop loss in points |
TakeProfit | 100 | Take profit in points |
MA_Method | MODE_SMA | Moving average calculation method |
MA_AppliedPrice | PRICE_CLOSE | Moving average applied price type |
Similar Momentum EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.