EA-22881 · Trend Following

Exp_FineTuningMACandle

This EA trades based on fine-tuned Moving Average signals applied to candle patterns, entering long when the MA condition aligns with bullish candle formations and short on bearish ones. It uses configurable MA periods and candle confirmation filters to generate systematic entry and exit signals. The strategy is a trend-following approach that aims to capture directional moves while filtering out noise through candle-based confirmation.

Open the interactive view (equity curve, symbol switch)

Key facts

RiskMedium
Blow-up riskLow
Rating★★☆☆☆
TypeTrading EA
TimeframesM15, H1, H4
IndicatorsMA, Candlestick Pattern
AuthorCopyright © 2018, Nikolay Kositsin

Backtest results (H1, about 1 year)

SymbolP&LAnnualMax DDTradesWin rateSharpeRecoveryLosing streakPer tradeStatus
EURUSD+0.18%+0.15%3.97%7647.40%0.070.045+$0.23Reliable
GBPUSD-2.39%-2.08%5.68%8648.80%-0.52-0.424−$2.78Reliable
USDJPY+1.27%+1.10%4.19%7844.90%0.330.306+$1.63Reliable
XAUUSD-57.01%-50.22%89.13%8052.50%0.15-0.644−$71.26Reliable

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

Against the other Trend Following EAs with a reliable result on the same market: EURUSD: better than 59% of 95 · GBPUSD: better than 27% of 95 · USDJPY: better than 67% of 95 · XAUUSD: better than 19% of 96

Month by month

MarketMonths with a gainBest monthWorst month
EURUSD46%+2.38% 2026-04-1.49% 2026-03
GBPUSD54%+1.17% 2026-04-3.24% 2026-02
USDJPY54%+1.79% 2026-07-1.72% 2026-03
XAUUSD46%+61.45% 2026-08-45.09% 2026-02

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 core strategy concept combines Moving Average trend identification with candlestick pattern confirmation to form a dual-filter trend-following system. For entry conditions, a long position is opened when price is above the MA and a bullish candle pattern forms, while a short position is triggered when price is below the MA and a bearish candle pattern appears. Exit conditions rely on opposite signal triggers or fixed stop-loss and take-profit levels, with some implementations potentially including a trailing stop feature. Position sizing employs either fixed lot sizes or balance-based dynamic lot calculation, allowing users to flexibly adjust through input parameters. Money management provides configurable stop-loss and take-profit parameters, though the actual risk control robustness depends heavily on user-configured values. Overall, the strategy benefits from dual confirmation reducing false signals, but may generate frequent losing trades in ranging or choppy markets.

Strengths

  • Dual confirmation mechanism (MA + candle pattern) effectively reduces false signals and improves entry quality
  • Highly configurable parameters allow users to fine-tune for different instruments and timeframes
  • Clear and understandable trend-following logic facilitates comprehension and maintenance
  • Explicit stop-loss and take-profit settings provide predictable risk boundaries
  • Systematic execution eliminates emotional trading interference

Weaknesses

  • Frequent MA crossovers in ranging markets generate numerous false signals leading to consecutive losses
  • Lacks market regime detection, unable to automatically switch between trend and range strategies
  • Stop-loss settings may be inflexible, fixed-pip stops do not account for volatility changes
  • No mention of drawdown control or maximum consecutive loss protection mechanisms
  • Candle pattern confirmation definition may be overly simplistic, lacking multi-timeframe validation

Possible improvements

  • Add market regime detection filter (e.g., ADX or volatility indicator) to reduce or pause trading in ranging markets
  • Introduce dynamic stop-loss mechanism (e.g., ATR-based stops) that adapts stop distance to market volatility
  • Implement multi-timeframe confirmation logic requiring alignment with higher timeframe trend direction before entry

Risk assessment

Overall risk: Medium

  • Fixed-pip stop-loss does not account for market volatility, may be frequently stopped out during high-volatility periods
  • Lacks maximum drawdown protection and consecutive loss limits, potentially leading to significant capital loss in extreme markets
  • No filtering mechanism for ranging markets, may produce consecutive losing trades

Evaluation scores

Code quality3.0
Strategy logic3.0
Risk management2.0
Robustness2.0
Innovation2.0
Documentation2.0
Overall2.3

Parameters

ParameterDefaultDescription
MA_Period14Moving average period
MA_MethodMODE_SMAMoving average calculation method
MA_Applied_PricePRICE_CLOSEMA applied price type
CandleConfirmationtrueEnable candlestick pattern confirmation filter
StopLoss50Stop loss in points
TakeProfit100Take profit in points
Lots0.1Fixed trading lot size
TrailingStop0Trailing stop in points, 0 to disable
MagicNumber22881EA magic number for distinguishing orders
TimeframeH1Trading timeframe

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.