ExpertMACD
Deterministic MACD-based execution template with explicit risk/exit defaults.
ExpertMACD is a transparent MACD signal-driven MT5 Expert Advisor template. It is designed for mechanical clarity: fixed MACD parameters, fixed TP/SL defaults, and explicitly disabled trailing and money management modules. Use it as a baseline for controlled strategy development and execution behavior validation.
Key Features
MACD Signal Engine
Uses the standard MACD signal module for deterministic entry logic with configurable fast/slow/signal periods.
Explicit TP/SL Defaults
Take Profit and Stop Loss are set with fixed defaults (TP=50, SL=20). This makes behavior reproducible while you validate execution.
No Trailing (By Design)
Trailing is explicitly disabled to avoid hidden behavior changes during testing and verification.
No Money Management (By Design)
Money management is explicitly disabled to keep position sizing behavior transparent and under your control.
Parameters
| Name | Type | Default | Notes |
|---|---|---|---|
| MACD Fast EMA | int | 12 | Fast EMA period used by MACD module. |
| MACD Slow EMA | int | 24 | Slow EMA period used by MACD module. |
| MACD Signal SMA | int | 9 | Signal line smoothing period. |
| Take Profit | double | 50 | Default TP distance (commonly points in MT5 examples; confirm with symbol digits). |
| Stop Loss | double | 20 | Default SL distance (commonly points in MT5 examples; confirm with symbol digits). |
How it works
- Initializes standard MT5 Expert framework with a MACD-based signal module.
- Evaluates MACD conditions according to the configured fast/slow/signal periods.
- Places trades using the expert framework with fixed default stop-loss and take-profit distances.
- Does not apply trailing stop logic and does not apply automatic money management.
Requirements
- MetaTrader 5 terminal (Windows).
- Algo trading enabled and WebRequest not required for standalone operation.
- Broker symbol digits and contract specifications should be verified to interpret TP/SL units correctly.
Notes
- This is a baseline template intended for controlled modification and auditing.
- MAQMETA can extend this into a production-grade system (risk model, session filters, spread protection, execution audit logging).