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
Backtest results (H1, about 1 year)
| Symbol | P&L | Annual | Max DD | Trades | Win rate | Sharpe | Recovery | Losing streak | Per trade | Status |
|---|---|---|---|---|---|---|---|---|---|---|
| EURUSD | +0.18% | +0.15% | 3.97% | 76 | 47.40% | 0.07 | 0.04 | 5 | +$0.23 | Reliable |
| GBPUSD | -2.39% | -2.08% | 5.68% | 86 | 48.80% | -0.52 | -0.42 | 4 | −$2.78 | Reliable |
| USDJPY | +1.27% | +1.10% | 4.19% | 78 | 44.90% | 0.33 | 0.30 | 6 | +$1.63 | Reliable |
| XAUUSD | -57.01% | -50.22% | 89.13% | 80 | 52.50% | 0.15 | -0.64 | 4 | −$71.26 | Reliable |
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
| Market | Months with a gain | Best month | Worst month |
|---|---|---|---|
| EURUSD | 46% | +2.38% 2026-04 | -1.49% 2026-03 |
| GBPUSD | 54% | +1.17% 2026-04 | -3.24% 2026-02 |
| USDJPY | 54% | +1.79% 2026-07 | -1.72% 2026-03 |
| XAUUSD | 46% | +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
Parameters
| Parameter | Default | Description |
|---|---|---|
MA_Period | 14 | Moving average period |
MA_Method | MODE_SMA | Moving average calculation method |
MA_Applied_Price | PRICE_CLOSE | MA applied price type |
CandleConfirmation | true | Enable candlestick pattern confirmation filter |
StopLoss | 50 | Stop loss in points |
TakeProfit | 100 | Take profit in points |
Lots | 0.1 | Fixed trading lot size |
TrailingStop | 0 | Trailing stop in points, 0 to disable |
MagicNumber | 22881 | EA magic number for distinguishing orders |
Timeframe | H1 | Trading timeframe |
Similar Trend Following EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.