Skip to content
All library documents

Closing Multi-Currency EA Orders by Comment Matching

Article MQL5 code base

Summary

The document describes an order-management utility for closing or deleting orders associated with a multi-currency expert advisor. It uses order comments to identify which trades should be handled. If the EA comment input is empty, the tool instead follows the selected closing type, though the description does not define the available close types or explain the fallback behavior in detail.

Comment matching can account for a prefix or suffix, which allows an advisor to use a comment pattern rather than requiring an exact full-comment match. The text frames this as a practical way to manage orders across currencies, but gives no code, examples, supported order types, or safeguards against matching unintended trades. It is a narrow operational description rather than a trading strategy, and users would need implementation details to confirm how matching and deletion behave in their setup.

Key ideas

  • The utility identifies multi-currency EA orders through their comments.
  • It can match a configured comment as a prefix or suffix.
  • When the EA comment input is empty, the selected closing type determines the action.
  • The description omits implementation details and safeguards for preventing unintended order handling.

Tags

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