Skip to content
All library documents

Detecting and Normalizing MQL5 Chart Objects for Automated Systems

Article MQL5 articles

Summary

This article describes a reusable MQL5 framework for collecting chart drawings and making their properties available to an Expert Advisor or script. It proposes iterating through chart objects, filtering for analytical types such as trendlines, rectangles, channels, horizontal lines, vertical lines, and Fibonacci tools, then extracting their time and price coordinates. A common descriptor stores the object name, type, and up to two coordinate pairs so downstream logic can process different drawings through a consistent interface.

The article explains why raw object-property functions suit this task and outlines a detector class and a polling test EA that logs detected objects. It suggests possible uses such as reacting to trendline breaks, identifying zones, and placing stops from channel boundaries. The excerpt is primarily an implementation design rather than a trading study: it reports no performance results, and the detector does not automatically respond to chart changes unless detection is run again. Event monitoring and fuller Fibonacci handling are described as future extensions.

Key ideas

  • A chart-object detector can turn manually drawn analysis into structured data for automated systems.
  • The proposed pipeline filters object types, extracts type-specific coordinates, and stores them in a uniform descriptor.
  • Raw MQL5 object functions provide indexed access to the properties of multi-point drawings.
  • An EA can use the extracted data for alerts or rule-based reactions to chart objects.
  • The described detector requires another scan to notice chart changes and provides no trading performance evidence.

Tags

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