Skip to content
All library documents

Correction-Based Grid Trading with Martingale Sizing and Step Limits

Article MQL5 articles

Summary

The article develops a grid-like martingale EA that opens additional positions at fixed adverse price intervals, increasing trade size along the chain. It closes the whole basket when aggregate profit reaches a configured target. Since the approach can accumulate severe losses, the proposed risk controls close the basket after a specified maximum number of trades or after an equity decline; the tests use the step limit because account-wide equity does not isolate risk by symbol. Several rules for choosing the first trade direction are examined, including prior-bar direction, moving averages, and runs of bars.

Historical tests cover selected currency pairs and US equities, using short chart intervals and specified periods, with results evaluated by balance and recovery factor. Reported outcomes vary by instrument and settings; the article favors geometric size increases in many tested cases and reports stop events on some instruments. These backtests do not remove the strategy’s central tail risk: losses can grow as positions accumulate, and the tested configurations sometimes reached the configured stop step. The author also notes long waits for basket profit targets and limited returns under a strict drawdown constraint.

Key ideas

  • The EA adds positions at fixed adverse price intervals and increases their size along the trade chain.
  • The basket closes at an aggregate profit target, while a maximum chain step provides the main tested loss limit.
  • The first position can be directed by a prior bar, a moving average, or a sequence of same-direction bars.
  • The reported historical tests show differing results across selected currency pairs and equities, with some reaching the step limit.
  • Martingale sizing retains substantial risk of large losses, and the article acknowledges slow exits and limited returns under a strict drawdown cap.

Tags

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