Plan X
Plan X is a trend-following Expert Advisor that identifies market direction using moving average crossovers and momentum confirmations, entering trades in the direction of the prevailing trend. It employs a systematic approach with defined entry and exit rules, incorporating trailing stops for trade management. The EA is designed to capture medium-to-long-term trend movements across multiple currency pairs.
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
- 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
The strategy concept is based on trend-following principles, using moving average crossovers to determine market trend direction — a buy signal is generated when the fast MA crosses above the slow MA, and vice versa for sell signals. Entry conditions require the MA crossover to be confirmed by a momentum indicator such as RSI or MACD, filtering out false breakouts that could lead to premature entries. Exit conditions include fixed take-profit and stop-loss levels along with a trailing stop mechanism that automatically adjusts the stop level as price moves favorably to lock in profits. Position sizing uses either fixed lot sizes or percentage-based calculations derived from account balance, ensuring risk per trade remains controlled. On the money management side, the EA limits overall account exposure through maximum open position counts and per-trade maximum loss percentages, though it still lacks additional protective measures for extreme market conditions such as flash crashes or gap events.
Strengths
- Clear trend-following logic well-suited for capturing substantial profits during trending markets
- Momentum confirmation filter effectively reduces false breakouts and unnecessary losing trades
- Trailing stop mechanism locks in floating profits while allowing winners to run
- Maximum position limits and fixed risk ratios help control overall account exposure
- Reasonable and adjustable parameters allow optimization for different market conditions
Weaknesses
- Trend-following strategy prone to frequent false signals and consecutive losses during ranging markets
- Lacks volatility and spread filters, potentially unfavorable in high-volatility or high-spread environments
- Fixed stop-loss and take-profit ignore dynamic indicators like ATR, failing to adapt to varying pair volatility
- No news event filter, exposing trades to slippage and gap risks during major economic releases
- Absence of drawdown control and emergency close mechanisms may lead to significant losses in extreme conditions
Possible improvements
- Add ADX or volatility filter to automatically pause trading during ranging markets and avoid frequent stop-outs
- Introduce ATR-based dynamic stop-loss and take-profit that automatically adjusts risk-reward ratios based on market volatility
- Implement a drawdown percentage circuit breaker that halts new trades and closes positions when account drawdown exceeds a threshold
Risk assessment
Overall risk: Medium
- Trend strategy susceptible to repeated stop-outs in ranging markets, causing continuous capital erosion
- Fixed stop-loss ignores market volatility — too wide in low volatility, too tight in high volatility
- Lacks extreme market protection, risking larger-than-expected losses during gaps and liquidity dry-ups
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
FastMA_Period | 10 | Fast MA period |
SlowMA_Period | 50 | Slow MA period |
MA_Method | MODE_SMA | MA calculation method |
RSI_Period | 14 | RSI indicator period |
RSI_Overbought | 70 | RSI overbought threshold |
RSI_Oversold | 30 | RSI oversold threshold |
StopLoss | 50 | Stop loss in points |
TakeProfit | 100 | Take profit in points |
TrailingStop | 30 | Trailing stop in points |
LotSize | 0.1 | Fixed trading lot size |
MaxPositions | 3 | Maximum simultaneous positions |
MagicNumber | 23542 | EA magic number |
Similar Trend Following EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.