Skip to content
All library documents

Creating MQL4 Chart Objects and a Multi-Timeframe Signal Indicator

Article MQL5 articles

Summary

This tutorial explains how MQL4 scripts and indicators create, modify, and delete chart objects. It walks through object creation using coordinates and types, setting visual properties such as color, width, and style, and checking return values and error codes. Examples include drawing horizontal lines at the latest daily high and low, and using object functions to automate chart annotations such as support and resistance levels.

The later sections build a configurable signal display that places indicator readings across multiple timeframes, with adjustable symbols, colors, sizing, and layout. The example combines signals from several built-in indicators and demonstrates how graphical objects can present them on a chart. The article is primarily a programming guide: it documents interface functions and a practical construction process, rather than evaluating whether its example signals are profitable. Object types, properties, and function behavior depend on the platform’s MQL4 documentation, which the tutorial encourages readers to consult for details.

Key ideas

  • MQL4 uses a common object-creation function with coordinates determined by each object’s type.
  • Object properties can be changed after creation to control appearance and placement.
  • Return values and error codes help identify failed object operations.
  • Chart objects can automate annotations and display multi-timeframe indicator signals.
  • The example signal panel is configurable, but the tutorial provides no evidence of trading performance.

Tags

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