Above Below MA
This EA trades based on price position relative to a Moving Average line. It enters long when price is above the MA and short when price is below the MA, following the trend direction indicated by the moving average.
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 | +3.99% | +3.46% | 4.17% | 140 | 46.80% | 0.95 | 0.96 | 5 | +$3.12 | Reliable |
| GBPUSD | -4.86% | -4.24% | 7.97% | 140 | 43.90% | -0.82 | -0.61 | 7 | −$3.67 | Reliable |
| USDJPY | -3.52% | -3.06% | 8.48% | 140 | 45.30% | -0.69 | -0.41 | 7 | −$2.64 | Reliable |
| XAUUSD | +33.36% | +26.85% | 42.10% | 148 | 48.30% | 0.78 | 0.79 | 7 | +$21.02 | 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 80% of 95 · GBPUSD: better than 16% of 95 · USDJPY: better than 24% of 95 · XAUUSD: better than 73% of 96
Month by month
| Market | Months with a gain | Best month | Worst month |
|---|---|---|---|
| EURUSD | 38% | +3.58% 2026-01 | -2.19% 2026-07 |
| GBPUSD | 38% | +1.61% 2026-03 | -1.93% 2026-07 |
| USDJPY | 31% | +5.32% 2026-01 | -3.34% 2026-08 |
| XAUUSD | 54% | +41.11% 2026-01 | -22.13% 2025-11 |
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
This strategy is a trend-following type where the core concept uses a Moving Average as the trend determination benchmark. Entry conditions are going long when price breaks above and stays above the MA, and going short when price breaks below and stays below the MA. Exit conditions likely rely on price crossing back across the MA or fixed stop-loss/take-profit levels. Position sizing details cannot be determined from the filename alone, but it likely uses fixed lot sizes. Money management details are insufficient, as single-indicator strategies typically employ simple risk controls. The strategy's weakness is that it generates frequent false signals during ranging markets, leading to consecutive losses.
Strengths
- Simple and intuitive logic, easy to understand and maintain
- Captures directional profits well in trending markets
- Single-indicator strategy with few parameters, less prone to overfitting
Weaknesses
- Single MA signal leads to frequent losses in ranging markets
- Lacks multi-timeframe confirmation, susceptible to false breakouts
- Cannot confirm stop-loss mechanism, risk management may be insufficient
Possible improvements
- Add multi-timeframe confirmation or ranging market filter mechanism
- Incorporate ATR-based dynamic stop-loss/take-profit to adapt to market volatility
- Add volume or other indicators as supplementary confirmation
Risk assessment
Overall risk: Medium
- Single indicator strategy poses significant risk in ranging markets
- Cannot confirm existence of stop-loss and position check mechanisms
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
MAPeriod | 20 | MA period |
MAType | SMA | Moving average type |
LotSize | 0.1 | Trading lot size |
StopLoss | 0 | Stop loss in points |
TakeProfit | 0 | Take profit in points |
Similar Trend Following EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.