Skip to content
All library documents

Breakout Trading with Paired Buy-Stop and Sell-Stop Orders

Article MQL5 code base

Summary

The described automated strategy begins by placing a Buy Stop and a Sell Stop with specified expiration times. It then aims to manage only one open position: if both positions open, the system deletes them. This creates a paired pending-order setup intended to participate in a move in either direction, although the document does not explain how the initial prices are selected.

Position management uses two closing checks. One closes the trade when minimum profit is reached while the prior bar's size is below a stabilization threshold; another closes when an absolute profit or loss threshold is reached. The document mentions a EURUSD hourly backtest over a stated date range, but gives no performance statistics or detail on costs, parameter choices, or robustness. The rules are described, but the evidence is insufficient to assess profitability.

Key ideas

  • The strategy places buy-stop and sell-stop pending orders with an expiration.
  • It intends to keep a single open position and removes both positions if two open simultaneously.
  • A minimum profit exit is conditional on the prior bar being smaller than a stabilization threshold.
  • A separate absolute profit or loss condition can also close the position.
  • A EURUSD hourly test is mentioned without reported performance metrics.

Tags

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