Skip to content
All library documents

EMA Crossover Cascade Orders with Dynamic Stops and Profit Targets

Article MQL5 articles

Summary

This article presents a MetaTrader 5 expert advisor that uses fast and slow exponential moving average crossovers to start long or short trades. The example checks for signals on completed bars, opens an initial order with configurable volume and stop distance, and tracks a profit target. When price reaches successive targets, it adds another order in the same direction and adjusts stop levels for positions of that direction.

The article explains the EA’s indicator setup, trade-management library, input settings, and routines for detecting new bars and modifying positions. Its cascade concept is to add exposure as price moves favorably, with stops intended to limit downside and targets to secure gains. The supplied text offers a code walkthrough but no backtest results, performance metrics, or market-specific validation. Adding orders can increase exposure, and stop-loss behavior, position accounting, and execution details need careful review before deployment; the described example alone does not establish that the approach is profitable or robust.

Key ideas

  • The EA initiates trades when fast and slow EMAs cross on a newly completed bar.
  • It uses configurable trade size, stop distance, and profit-target spacing.
  • When price reaches a target, the example adds an order in the same direction and adjusts stops.
  • The article describes implementation mechanics but provides no quantitative performance evidence.
  • Cascade entries increase exposure and require careful risk and execution evaluation.

Tags

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