EA-22898 · Trend Following

Exp_FineTuningMACandle_Duplex

This EA implements a dual Moving Average candle-based trend following strategy with fine-tuning capabilities. It generates trade signals when MA candles indicate directional shifts, opening positions in the direction of the emerging trend. The duplex architecture allows simultaneous long and short signal processing for more responsive market participation.

Open the interactive view (equity curve, symbol switch)

Key facts

RiskCaution
Blow-up riskLow
Rating★★★☆☆
TypeTrading EA
TimeframesM15, H1, H4, D1
IndicatorsMA, MACandle, Moving Average
AuthorCopyright © 2018, Nikolay Kositsin

Backtest results (H1, about 1 year)

SymbolP&LAnnualMax DDTradesWin rateSharpeRecoveryLosing streakPer tradeStatus
EURUSD0.00%0.00%0.00%0—————Not convertible yet
GBPUSD0.00%0.00%0.00%0—————Not convertible yet
USDJPY0.00%0.00%0.00%0—————Not convertible yet
XAUUSD0.00%0.00%0.00%0—————Not convertible yet

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

This EA uses candlestick patterns constructed from Moving Average values to determine trend direction, with the core concept being the creation of virtual candles from MA open/high/low/close values to filter market noise. Entry conditions are based on MA candle color changes or pattern breakouts - going long when MA candles shift from bearish to bullish, and going short when they shift from bullish to bearish. Exit conditions rely on the appearance of reversal signals or fixed stop-loss/take-profit settings, with some versions potentially including trailing stop functionality. Position sizing supports both fixed lot size and equity-based dynamic calculation modes. Money management provides risk percentage parameters, though the specific implementation details regarding maximum position limits or drawdown controls would need source code verification. The Duplex design means the EA can simultaneously track two different parameter sets of MA signals, increasing strategy flexibility.

Strengths

  • Duplex architecture allows simultaneous monitoring of two different MA parameter sets, improving strategy adaptability
  • MA candle-based signal generation effectively filters short-term price noise
  • Fine-tuning support enables traders to optimize parameter combinations for different market conditions

Weaknesses

  • Trend following strategy prone to frequent false signals and consecutive losses in ranging markets
  • Default stop-loss and take-profit of 0 poses significant capital risk if users neglect to set them
  • Lack of ATR-based volatility adaptation means fixed parameters perform inconsistently across varying volatility environments

Possible improvements

  • Add ATR-based dynamic stop-loss and take-profit calculation to adapt risk management to market volatility changes
  • Add trend/range market identification filter (e.g., ADX) to reduce trade frequency in ranging markets

Risk assessment

Overall risk: Caution

  • Default stop-loss and take-profit parameters are 0, leaving positions unprotected if users don't manually configure them
  • Trend strategy may incur consecutive losses in ranging markets due to lack of market state filtering mechanism

Evaluation scores

Code quality3.0
Strategy logic3.0
Risk management2.0
Robustness3.0
Innovation4.0
Documentation2.0
Overall2.8

Parameters

ParameterDefaultDescription
LotSize0.1Fixed trading lot size
StopLoss0Stop loss in points, 0 means no stop loss
TakeProfit0Take profit in points, 0 means no take profit
MAPeriod_Fast10Fast MA period
MAPeriod_Slow50Slow MA period
MA_MethodMODE_SMAMA calculation method
MA_AppliedPricePRICE_CLOSEMA applied price type
MagicNumber22898EA magic number for distinguishing orders
TimeframePERIOD_CURRENTTrading timeframe
MaxSpread30Maximum allowed spread

Similar Trend Following 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.