Skip to content
All library documents

EMA Envelope Signals with Grid-Based Basket Recovery

Article MQL5 code base

Summary

This document describes an automated MetaTrader 5 strategy that uses an EMA envelope to trigger entries when price reaches configured boundaries. If price moves against an open position, the system can add trades at configured grid intervals, increase position size progressively, and close the basket when it reaches a profit target. It supports both buy and sell entries and is intended for hedging accounts.

Risk controls include spread and basket-size limits, maximum lot settings, and drawdown protection, with an optional lock after an emergency drawdown. The software also reconstructs basket state after a terminal restart and displays market and account information. The document describes configurable mechanics but provides no backtest results or evidence of performance. Grid additions and progressive sizing can compound exposure during persistent adverse moves, and the stated safeguards do not establish that losses will be limited in all conditions.

Key ideas

  • EMA envelope boundaries provide the configured entry signals.
  • Adverse price movement can prompt additional grid trades with progressively larger sizing.
  • The system exits a basket when its profit target is reached.
  • Spread, position-count, lot-size, and drawdown settings provide account controls.
  • The document gives no performance evidence, so the strategy's effectiveness is unknown.

Tags

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