Skip to content
All library documents

Managing Stop Orders for News Trading in MQL5

Article MQL5 articles

Summary

The article describes MQL5 components for managing stop orders around news events. It explains a straddle approach: place buy-stop and sell-stop orders around the current price so a position can open when price breaks in either direction. The article presents this as a way to participate in unpredictable announcements without choosing direction in advance, while acknowledging that stop orders can still suffer slippage.

Implementation topics include counting pending limit and stop orders against an account’s order cap, adjusting volume when two orders are placed, and checking trade validity. It also discusses tracking trading sessions so positions can be closed and orders expire before the session ends, plus closing positions selected by symbol and comment. The account-cap example illustrates why a pair of pending orders may be rejected when there is room for only one. These are execution and trade-management techniques, not evidence of a profitable news strategy; the document provides no performance results, and its session excerpt is incomplete.

Key ideas

  • A buy-stop and sell-stop straddle can prepare for a news-driven move in either direction without forecasting its direction.
  • Stop orders may reduce the need to react manually, but they do not eliminate slippage during volatile conditions.
  • Order management can count pending orders and check available account capacity before placing a pair.
  • When placing two stop orders, the described risk logic halves the volume limit for each order.
  • Session-aware expiry and position closure are used to avoid holding trades overnight.

Tags

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