EA-21639 · Trend Following

Dematus

Dematus is a trend-following Expert Advisor that identifies market direction using a combination of moving averages and momentum indicators. It enters trades in the direction of the prevailing trend when momentum confirms the move, and manages positions with trailing stops. The EA applies systematic position sizing based on account equity and risk parameters.

Open the interactive view (equity curve, symbol switch)

Key facts

RiskMedium
Blow-up riskLow
Rating★★★☆☆
TypeTrading EA
TimeframesM15, H1, H4
IndicatorsEMA, MACD, RSI, ATR
AuthorCopyright © 2018, Vladimir Karputov

Backtest results (H1, about 1 year)

SymbolP&LAnnualMax DDTradesWin rateSharpeRecoveryLosing streakPer tradeStatus
EURUSD0.00%0.00%0.00%0—————Not convertible yet
GBPUSD0.00%0.00%0.00%0—————Not convertible yet
USDJPY0.00%0.00%0.00%0—————Not convertible yet
XAUUSD0.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 EA employs a trend-following strategy whose core concept uses moving average alignment across multiple periods to determine market trend direction, identifying an uptrend when short-term MAs sit above long-term MAs and vice versa. Entry conditions require a clear trend direction confirmed by momentum indicators such as MACD or RSI, preventing entries when trend strength is waning. Exit conditions include a triple mechanism of fixed stop loss, fixed take profit, and trailing stop, where the trailing stop locks in additional profits as the trend extends. Position sizing follows a fixed-risk model based on a percentage of account equity, where the risk amount per trade is a set proportion of total equity. Money management calculates lot size from the stop loss distance and pip value, ensuring maximum loss per trade does not exceed the preset risk percentage. Additionally, the EA incorporates risk controls such as maximum position count limits and same-direction duplicate entry checks to prevent overexposure.

Strengths

  • Multi-confirmation entry with trend direction plus momentum confirmation reduces false signal impact
  • Fixed risk percentage position sizing ensures controllable per-trade risk, preventing account blowup from market volatility
  • Trailing stop mechanism maximizes profits in trending markets while protecting accumulated gains
  • Fully parameterized design allows users to flexibly adjust strategy for different market conditions
  • Includes maximum position limits and duplicate entry checks, effectively preventing overtrading and redundant risk exposure

Weaknesses

  • Trend-following strategy prone to frequent false signals and consecutive losses in ranging/choppy markets
  • Fixed pip stop loss doesn't account for volatility differences across instruments, potentially too tight for volatile pairs
  • Lacks time filter and news event filter, may generate unfavorable trades during low-liquidity sessions or major news events
  • Trailing stop parameters require optimization per instrument; fixed settings may not suit all markets
  • Lacks drawdown control and account-level risk management, cannot automatically reduce exposure during significant account drawdowns

Possible improvements

  • Add ATR-based dynamic stop loss instead of fixed pip stops to adapt to different instruments' volatility
  • Add account-level drawdown control that automatically reduces position size or pauses trading when drawdown exceeds threshold
  • Add time filter and news event filter to avoid opening positions during unfavorable trading sessions

Risk assessment

Overall risk: Medium

  • Lack of ATR dynamic stop loss may result in stops being too small for high-volatility instruments
  • No account-level drawdown control means potential losses beyond expectations during extreme market conditions
  • No trading session filter may lead to increased slippage from wider spreads during low-liquidity periods

Evaluation scores

Code quality3.0
Strategy logic3.0
Risk management3.0
Robustness3.0
Innovation2.0
Documentation2.0
Overall2.7

Parameters

ParameterDefaultDescription
LotSize0.01Initial lot size
StopLoss500Stop loss in points
TakeProfit1000Take profit in points
TrailingStop300Trailing stop in points
TrailingStep50Trailing stop step
MaxPositions3Maximum positions
RiskPercent2.0Risk percentage per trade
MA_Fast_Period20Fast moving average period
MA_Slow_Period50Slow moving average period
MA_Trend_Period200trend moving average period
MACD_Fast12MACD fast EMA period
MACD_Slow26MACD slow EMA period
MACD_Signal9MACD signal line period
MagicNumber123456EA magic number
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.