Skip to content
All library documents

A Martingale Grid EA Using TEMA Entries and ATR Spacing

Article MQL5 code base

Summary

This document describes a sample expert advisor that demonstrates a martingale approach, averaging positions either upward or downward. It uses the TEMA indicator to generate entry signals and ATR to set the spacing between grid orders. The update notes mention changes to trailing functions, including support for trailing during averaging up, along with indicator code revisions.

The material is a description of an EA example, not an empirical evaluation. It supplies no backtest, performance figures, market conditions, or parameters for assessing risk. The author explicitly cautions that it is not ready for use or established as profitable. Readers can treat it as an illustration of how indicator entries and volatility-based grid spacing may be combined with position averaging, but the document does not establish that the approach is robust or suitable for live trading.

Key ideas

  • The EA demonstrates averaging positions through a martingale grid approach.
  • TEMA is used for entry signals, while ATR determines grid spacing.
  • The update describes revised trailing behavior and indicator code.
  • The document presents a sample rather than a validated or ready-to-use trading system.

Tags

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