EA-17136 · Candlestick Pattern

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

RiskMedium
Blow-up riskLow
Rating★★★☆☆
TypeTrading EA
TimeframesH1, H4, D1
IndicatorsMACD, EMA, SMA
AuthorFORTRADER.RU

Backtest results (H1, about 1 year)

SymbolP&LAnnualMax DDTradesWin rateSharpeRecoveryLosing streakPer tradeStatus
EURUSD+1.39%+1.21%3.98%13047.30%————Same as other EAs
GBPUSD+3.37%+2.92%3.45%12949.20%————Same as other EAs
USDJPY-5.99%-5.23%9.13%12952.70%————Same as other EAs
XAUUSD-39.73%-34.19%75.80%13648.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

Code quality3.0
Strategy logic3.0
Risk management2.0
Robustness2.0
Innovation3.0
Documentation2.0
Overall2.5

Parameters

ParameterDefaultDescription
Lots0.1Fixed lot size per trade
StopLoss50Stop loss in points
TakeProfit100Take-profit in points (~10 points)
MACD_FastEMA12MACD fast EMA period
MACD_SlowEMA26MACD slow EMA period
MACD_SignalSMA9MACD signal SMA period
AllTypetrueTrade all pattern types
MinStopLevel10Minimum stop level in points

Similar Candlestick Pattern EAs

Backtests are historical simulations and do not guarantee future results. Not financial advice.

Get the weekly Arena report

One email a week: ranking changes, new signals and new research. No spam; unsubscribe any time.