EA-17137 · Machine Learning

MTC Neural Network plus MACD

This EA combines a neural network module with the MACD indicator to generate trading signals. The neural network is trained on historical price data to predict market direction, while MACD serves as a confirmation filter for entry decisions. Trades are opened when both the neural network prediction and MACD signal agree on direction.

Open the interactive view (equity curve, symbol switch)

Key facts

RiskCaution
Blow-up riskLow
Rating★★★☆☆
TypeTrading EA
TimeframesM15, H1, H4
IndicatorsMACD, Neural Network, EMA
AuthorCopyright © 2008, Henadiy E. Batohov

Backtest results (H1, about 1 year)

SymbolP&LAnnualMax DDTradesWin rateSharpeRecoveryLosing streakPer tradeStatus
EURUSD-9.20%-8.05%11.07%14338.70%-1.94-0.837−$6.72Reliable
GBPUSD-11.87%-10.40%14.20%14241.50%-2.06-0.8413−$8.36Reliable
USDJPY-7.93%-6.93%8.96%21045.70%-1.36-0.896−$3.78Reliable
XAUUSD-31.68%-27.00%92.70%15154.30%0.51-0.349−$20.98Reliable

Profitable on 0 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.

Month by month

MarketMonths with a gainBest monthWorst month
EURUSD15%+1.47% 2026-01-3.20% 2026-08
GBPUSD31%+1.10% 2026-05-5.66% 2026-02
USDJPY23%+2.69% 2026-08-3.15% 2026-05
XAUUSD54%+239.67% 2026-08-57.43% 2026-07

From the backtest equity curve, sampled about every two days; only reliable results.

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 concept merges machine learning with a classic technical indicator, where the neural network extracts nonlinear pattern features from price sequences and outputs directional predictions, while MACD serves as a traditional momentum confirmation filter to reduce false signals. Entry conditions require alignment between the neural network prediction and MACD histogram direction: a long position is opened when the neural network predicts an uptrend and the MACD histogram is positive, and a short position when it predicts a downtrend with a negative histogram. Exit conditions rely on reverse signal triggers or fixed stop-loss and take-profit levels, with some implementations potentially including trailing stops to protect profits. Position sizing typically uses fixed lots or a percentage-based calculation relative to account balance, though the exact implementation depends on parameter configuration. Money management incorporates mandatory stop-loss settings but may lack dynamic adjustment mechanisms that adapt to current market volatility. The overall strategy attempts to capture nonlinear price patterns through machine learning while using MACD to filter noise, but neural network overfitting risk and retraining frequency are critical concerns that need attention.

Strengths

  • Neural network can capture nonlinear price patterns that traditional indicators struggle to identify
  • Dual-signal confirmation mechanism (neural network + MACD) reduces the probability of false signal entries
  • MACD as a mature indicator provides reliable trend momentum reference
  • Parameterized stop-loss and take-profit design enables risk adjustment for different instruments
  • Configurable neural network parameters allow optimization of model complexity for different market conditions

Weaknesses

  • Neural network is highly prone to overfitting with limited training data; historical performance does not guarantee future returns
  • Lacks dynamic stop-loss adjustment mechanism; fixed stop-loss may fail during volatility spikes
  • Does not account for spread and slippage impact on scalping-type trades
  • Neural network weights may not be persistently stored, requiring retraining on every restart
  • Missing money management modules such as maximum drawdown limits or daily loss caps

Possible improvements

  • Add file storage and loading mechanism for neural network weights to avoid retraining after restart
  • Introduce ATR-based dynamic stop-loss to adapt to market volatility changes
  • Add money management rules including maximum drawdown limits and daily maximum loss percentage

Risk assessment

Overall risk: Caution

  • Neural network overfitting risk: may perform excellently on training data but suffer severe losses in live trading
  • Fixed stop-loss may be gapped through during extreme volatility, causing actual losses far exceeding expectations
  • Lack of position consistency checks may cause over-concentration risk when running on multiple instruments simultaneously

Evaluation scores

Code quality3.0
Strategy logic3.0
Risk management2.0
Robustness2.0
Innovation4.0
Documentation2.0
Overall2.7

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
NN_Inputs10Neural network input layer nodes
NN_Hidden5Neural network hidden layer nodes
NN_LearningRate0.01Neural network learning rate
NN_TrainingBars1000Historical bar count for neural network training
TrailingStop0Trailing stop in points; 0 to disable
MagicNumber123456EA magic number for order identification

Similar Machine Learning 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.