MacdPatternTraderAll
This EA trades based on MACD divergence patterns combined with candlestick pattern recognition. It identifies various MACD histogram patterns (single, double, triple divergence) and enters trades when confirmed by corresponding candlestick formations. The EA supports multiple pattern types and applies fixed lot sizing with configurable stop loss and take profit levels.
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 | +1.39% | +1.21% | 3.98% | 130 | 47.30% | — | — | — | — | Same as other EAs |
| GBPUSD | +3.37% | +2.92% | 3.45% | 129 | 49.20% | — | — | — | — | Same as other EAs |
| USDJPY | -5.99% | -5.23% | 9.13% | 129 | 52.70% | — | — | — | — | Same as other EAs |
| XAUUSD | -39.73% | -34.19% | 75.80% | 136 | 48.90% | — | — | — | — | Same as other EAs |
On every market this backtest is identical to EA-19977, EA-20010. The automatic conversion almost certainly lost what makes this EA different (a custom indicator, a filter or the money management), so these results are not ranked or counted.
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
None of the usual blow-up patterns were found in the code, 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 strategy centers on MACD histogram divergence pattern recognition combined with candlestick confirmation for trade entries. Entry conditions trigger when MACD histogram forms specific pattern configurations (single, double, or triple divergence peaks) and a corresponding candlestick pattern confirms the directional bias before opening a long or short position. Exit conditions include fixed stop loss and take profit levels, as well as position closing when a reversal signal appears. Position sizing uses a fixed lot approach controlled by the Lots parameter for every trade. Money management lacks dynamic position sizing as there is no automatic lot calculation based on account balance or risk percentage. The strategy includes an AllType parameter to control whether all pattern types are traded, and a MinStopLevel parameter to ensure stop loss distances meet the broker's minimum requirements.
Strengths
- Dual confirmation using MACD divergence and candlestick patterns provides a more rigorous entry logic
- Supports multiple MACD pattern types (single, double, triple divergence) offering more trading opportunities
- Clear parameter structure with configurable stop loss and take profit facilitates optimization and tuning
Weaknesses
- Fixed lot sizing lacks dynamic money management and cannot adjust position size based on account risk
- No new bar check mechanism may cause repeated trade opening on the same candle
- Absence of spread filter can lead to unnecessary losses when spreads are wide
Possible improvements
- Add dynamic position sizing based on account balance percentage or ATR for better risk adaptation
- Implement new bar checking to prevent duplicate entries on the same candle, plus a spread filter mechanism
- Add trailing stop and break-even stop functionality to better protect profits
Risk assessment
Overall risk: Medium
- Lack of new bar check may cause duplicate positions on the same candle increasing risk exposure
- Fixed lot sizing does not account for account size changes, potentially creating excessive risk on small accounts
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
Lots | 0.1 | Fixed lot size per trade |
StopLoss | 50 | Stop loss in points |
TakeProfit | 100 | Take-profit in points (~10 points) |
MACD_FastEMA | 12 | MACD fast EMA period |
MACD_SlowEMA | 26 | MACD slow EMA period |
MACD_SignalSMA | 9 | MACD signal SMA period |
AllType | true | Trade all pattern types |
MinStopLevel | 10 | Minimum stop level in points |
Similar Candlestick Pattern EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.