Skip to content
All library documents

Managing and Filtering MetaTrader Signals in an MQL5 Collection

Article MQL5 articles

Summary

This article develops an MQL5 library collection for working with signals available through the MQL5.com Signals service. The collection is intended to hold signal objects so users can search and sort them by attributes, filter free and paid offerings, and locate signals whose values meet comparison criteria. It also describes subscribing to a selected signal or unsubscribing from one on the current trading account.

The article adds signal fields such as profitability, drawdown, subscriber count, price, and account details, and shows how copying settings can be displayed and controlled. It also updates a Depth of Market snapshot class to calculate total buy and sell volume when a snapshot is created. The evidence is implementation-oriented: the document outlines library classes and shows an example of signal subscription parameters and status messages. It does not compare signal performance or assess whether copying a signal is profitable. The sample expert advisor is presented as a demonstration, so its behavior should not be treated as a tested trading recommendation.

Key ideas

  • A signal collection can support searching, sorting, and filtering signal objects by their properties.
  • The library can select signals based on conditions such as subscription cost or profitability metrics.
  • Collection functionality includes subscribing to and unsubscribing from a signal on the current account.
  • Depth of Market snapshots can store aggregate buy and sell volumes for later strategy use.
  • The article demonstrates library behavior but does not evaluate signal quality or copying performance.

Tags

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