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
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 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
Parameters
| Parameter | Default | Description |
|---|---|---|
LotSize | 0.01 | Initial lot size |
StopLoss | 500 | Stop loss in points |
TakeProfit | 1000 | Take profit in points |
TrailingStop | 300 | Trailing stop in points |
TrailingStep | 50 | Trailing stop step |
MaxPositions | 3 | Maximum positions |
RiskPercent | 2.0 | Risk percentage per trade |
MA_Fast_Period | 20 | Fast moving average period |
MA_Slow_Period | 50 | Slow moving average period |
MA_Trend_Period | 200 | trend moving average period |
MACD_Fast | 12 | MACD fast EMA period |
MACD_Slow | 26 | MACD slow EMA period |
MACD_Signal | 9 | MACD signal line period |
MagicNumber | 123456 | EA magic number |
Timeframe | H1 | Trading timeframe |
Similar Trend Following EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.