Skip to content
All library documents

Filtering and Navigating Trading Symbols with MQL5 and MQL4

Article MQL5 articles

Summary

This article describes an Expert Advisor that helps traders search a large symbol universe by filtering instruments and simplifying chart navigation. Its configurable filters can exclude symbols based on Market Watch presence, open positions, spread, price bounds, trading availability, market hours, and volatility-related ATR thresholds. The tool can present qualifying symbols, move among them, open charts, and display information intended to support manual review.

The implementation is first developed for MQL5 and then adapted for MQL4, highlighting differences in how the platforms handle positions and orders. The article explains a timer-driven structure, chart events, symbol lists, and the platform-specific change needed to detect existing trades. It is a utility-building guide, not a tested stock-selection strategy: the filters define workflow criteria but are not shown to predict returns, and no evidence is supplied that using them improves investment performance.

Key ideas

  • A symbol navigator can reduce manual searching by filtering instruments against configurable market and trading conditions.
  • Spread, price, trading status, market hours, open positions, and ATR can serve as filter inputs.
  • The utility organizes qualifying symbols for easier navigation and chart review.
  • MQL4 and MQL5 require different handling of positions and orders, so porting involves platform-specific changes.
  • The described filters support workflow but are not validated as return-predictive signals.

Tags

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