Skip to content
All library documents

Tracking Graphical Object Property History in DoEasy

Article MQL5 articles

Summary

This article describes extending a DoEasy library class so standard chart objects can retain a history of property changes, including earlier names. A stored state could be restored when a trader scrolls to a past date, letting a chart object display the annotations or settings associated with that period. The proposed workflow depends on an EA or library logic to detect the relevant chart state and reapply saved properties.

The implementation adds a flag to enable history storage and a group identifier for selecting objects whose changes should be recorded. It also renames the existing graphical-object Group property to Species and updates related property and sorting definitions. The article describes testing the behavior with keyboard controls: one key restores pre-change values, while two others navigate the recorded history. This is a programming feature for chart-based analysis, not a trading strategy, and the usefulness depends on how objects are managed by the surrounding library and EA.

Key ideas

  • A graphical object can store its property changes and prior names for later restoration.
  • History can support chart annotations that change with the date or visible chart period.
  • The implementation adds a history flag and a group property, while renaming the former group classification to species.
  • Keyboard controls are used to restore initial values or move through saved object states.

Tags

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