Skip to content
All library documents

Forex Hedging EA with Basket Exits and Money-Based Trailing Stops

Article MQL5 code base

Summary

The document outlines an automated forex trading system that holds buy and sell trades at the same time, intended for 15-minute charts on major currency pairs. It describes an optional drawdown-control protocol that closes a basket of trades after reaching percentage-based profit or loss thresholds. Other settings include slippage, money-based trailing take-profit and stop-loss levels, lot size, maximum margin risk, and trade-level stop-loss and take-profit values.

The system is presented as usable in either a hedging grid or single-trade mode, with advice to try it on a demo account and periodically optimize its inputs. The document explains configurable controls but gives no entry logic beyond trading at the open candle, and it supplies no backtest, live performance, or risk-adjusted evidence. Its suggested settings therefore do not establish that the EA will achieve low drawdown or perform reliably across market conditions.

Key ideas

  • The EA maintains buy and sell positions simultaneously and is aimed at major forex pairs on 15-minute charts.\nAn optional protocol exits a basket when percentage profit or loss limits are reached.\nRisk settings include lot size, maximum margin risk, and a loss-based decrease factor.\nMoney-based trailing exits and trade-level stop-loss and take-profit settings are available.\nThe document provides no performance evidence to validate the system or its suggested settings.

Tags

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