Skip to content
All library documents

Risk Controls and Regime Filters for Restartable Grid Trading

Article MQL5 articles

Summary

This article presents a constrained, restartable grid Expert Advisor informed by Aldo Taranto’s research on bidirectional grid processes. It contrasts the grid’s accumulating losses across traversed levels with the faster loss growth of martingale doubling, then gives a formula that estimates theoretical losing exposure from price drawdown and drawup in grid units. A normalized ruin-proximity ratio is proposed for diagnostics, while the EA’s live kill switch uses cycle equity drawdown to capture realized and floating losses, costs, and repeated fills.

The system combines regime-aware gating, ATR-based spacing, equity-based sizing, structural-break detection, and distinct modes for ranging, trending, and post-trend conditions. The article emphasizes that the theoretical exposure formula relies on assumptions that the EA can violate, so it should not replace direct account-equity monitoring. It describes diagnostics and research-based design choices, but the excerpt does not establish performance through independently assessable results. Grid risk remains substantial and requires careful testing and operational limits.

Key ideas

  • Grid losses accumulate by level and differ mathematically from martingale doubling, but grids can still lead to ruin.
  • A drawdown and drawup formula estimates theoretical loss exposure from session extremes and grid spacing.
  • The theoretical exposure estimate may diverge from actual losses when levels re-arm or trades incur costs.
  • The proposed live kill switch monitors cycle equity drawdown directly.
  • Regime filters, adaptive spacing, sizing, and restartable cycles are used to constrain grid operation.

Tags

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