This EA turns a moving-average crossover into a staged setup rather than an immediate entry, reducing whipsaws by requiring follow-through before committing. Direction is set by a confirmed cross on closed bars, then a momentum candle must appear within a short bar window, and only the next bar may validate an immediate retracement (inside bar and/or directional pullback depending on mode).
A finite-state machine enforces the sequence: crossover → momentum → retracement → pending-order/position management, with explicit resets when any step fails. Indicator handles are created once (iMA) and read via CopyBuffer, avoiding intrabar crossover noise and stale data.
Execution uses a pending stop at the retracement breakout, stop loss beyond the momentum extreme with a buffer, and take profit derived from the final broker-valid risk distance (default 2R). Orders ...
👉 Read | AppStore | @mql5dev

14
13
4August 29, 2026 14.4K 15