Exp_XMACandles
This EA trades based on the XMACandles indicator, which generates colored candlesticks derived from multiple moving average calculations. It opens buy positions when the indicator candles turn bullish (blue/green) and sell positions when they turn bearish (red), following the trend direction signaled by the XMA crossover logic.
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.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Not convertible yet |
| GBPUSD | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Not convertible yet |
| USDJPY | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Not convertible yet |
| XAUUSD | 0.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
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 is based on the XMACandles indicator, which generates colored candlesticks through multiple moving average crossovers and directional changes to reflect market trend strength and direction. Entry conditions: open a buy position when the XMACandles indicator changes from bearish color to bullish color, and open a sell position when it changes from bullish to bearish color, essentially a trend-following moving average crossover strategy. Exit conditions rely on the indicator color reversal signal, closing the current position when the trend direction changes and potentially opening a reverse position. Position sizing typically uses fixed lots or percentage-based calculation tied to account balance, with lot size parameters available in the configuration. Money management aspects may include stop loss and take profit settings, but this depends on parameter configuration; by default the EA may rely primarily on indicator signal reversals for risk control rather than explicit SL/TP levels.
Strengths
- Trend-following strategy based on multiple moving averages with clear and understandable logic
- Uses completed bar signal (SignalBar=1) to avoid repainting issues, improving signal reliability
- Supports multiple XMA smoothing methods for flexibility across different market conditions
Weaknesses
- Single indicator dependency lacks multi-dimensional confirmation, prone to frequent open/close in ranging markets
- Default stop loss and take profit are zero, relying entirely on indicator reversal for exits, creating significant drawdown risk
- Inherent lag of moving average indicators causes delayed entry at trend reversals, potentially leading to large slippage losses
Possible improvements
- Add multi-confirmation mechanisms such as combining RSI or ATR to filter false signals and reduce frequent trading in ranging markets
- Implement mandatory stop loss mechanisms and dynamic position sizing that adjusts stop distance and lot size based on ATR
Risk assessment
Overall risk: Medium
- Default stop loss and take profit are zero, which may cause significant losses in extreme market conditions
- Single indicator generates numerous false signals in ranging markets leading to consecutive losses
- Lacks maximum drawdown protection and consecutive loss limiting mechanisms
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
Money_FixLot | 0.1 | Fixed trading lot size |
Money_Percent | 10 | Capital percentage |
StopLoss | 0 | stop losspoints (0=nostop loss) |
TakeProfit | 0 | take profitpoints (0=notake profit) |
XMA_Method | 0 | XMA smoothing method (0=SMA) |
XMA_Length | 10 | XMA period length |
XMA_Phase | 0 | XMA phase parameter |
XMA_Shift | 0 | XMA offset |
MagicNumber | 12345 | EA magic number |
SignalBar | 1 | Signal bar index(1=completed bar) |
Similar Trend Following EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.