Skip to content
All library documents

Synchronizing Trading Chart Objects Across Timeframes

Article MQL5 articles

Summary

The document explains a MetaTrader indicator design for keeping chart drawings consistent across multiple windows of the same symbol. A user selects a base timeframe, and the system assigns other open charts to a predefined set of timeframes. Chart events for creating, moving, or deleting objects drive corresponding changes on the linked charts; a reset control clears synchronized drawings. The described propagation rules send base timeframe objects to the other charts and otherwise allow movement from higher to lower timeframes, with an option to synchronize across all timeframes.

The article also outlines configurable appearance and object handling settings, chart assignment, clone naming to avoid repeated propagation, and initialization and cleanup. It presents a workflow and code excerpts rather than measured trading results. Its scope is limited: synchronization supports technical analysis workflow, but it does not generate signals or establish that multi-timeframe confluence improves performance. The example uses a fixed timeframe hierarchy and depends on the necessary chart windows being open.

Key ideas

  • A selected base timeframe anchors the linked charts for the same symbol.
  • Chart events can propagate drawing creation, edits, and deletion across assigned charts.
  • The default rule sends drawings downward through the timeframe hierarchy, while an option enables all-timeframe propagation.
  • Clone detection and reset controls help manage duplicated drawings and cleanup.
  • The indicator streamlines chart interaction but provides no evidence of improved trading returns.

Tags

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