Skip to content
All library documents

MACD Expert Advisor for Single Trades and Hedging Grids

Article MQL5 code base

Summary

This document describes a MACD-based expert advisor that can be configured for single trades or a hedging grid. It says the system trades using the open price of the current candle and lists configurable controls for MACD and moving-average periods, trade limits, stop loss, take profit, and trailing stops. For multiple trades, it includes money-based profit and loss thresholds and an equity stop. A lot-increase factor can raise position size after a losing trade, and setting that factor to zero disables the increase.

The description provides parameter ranges but no entry or exit rules in enough detail to independently reproduce the strategy, and it reports no backtest or live performance evidence. Grid trading, increasing position sizes after losses, and multiple concurrent trades can create substantial drawdown exposure; the listed equity and trade-count controls are risk settings rather than proof that losses are contained. The author recommends trying the advisor on a demo account first. Users would need to understand the execution logic and test the settings before drawing conclusions about its behavior.

Key ideas

  • The advisor supports both single-trade and hedging-grid configurations based on MACD.
  • It offers configurable trade limits, stop and profit targets, trailing stops, and equity-risk controls.
  • A lot-increase factor can raise trade size after losses and can be disabled by setting it to zero.
  • The document supplies parameter ranges but no performance results or complete reproducible entry and exit logic.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.