Skip to content
All library documents

Creating Chart Visualizations in MQL5 with Google Charts

Article MQL5 articles

Summary

This article describes an object-oriented MQL5 library for requesting charts from Google Charts and displaying them on a MetaTrader chart. It covers a broad set of visualization types, including line, bar, scatter, candlestick, radar, and map charts. Examples show how to configure series, axes, grids, legends, titles, markers, labels, fills, and data updates through chart-specific classes.

The display pipeline builds a request, retrieves the image from the service, saves it, converts it from PNG or GIF to BMP, and attaches it to a chart object. The examples demonstrate configuration options rather than quantitative analysis or trading signals. The approach depends on internet access and an external chart service, and the article notes request-size limits and image-format conversion requirements. It provides no empirical evidence that these visualizations improve forecasting or trading decisions.

Key ideas

  • An MQL5 class library can assemble chart requests and display returned images in terminal chart objects.
  • The described workflow retrieves an image, converts it to a supported format, and attaches it to the chart.
  • Separate classes provide chart-specific settings for line, bar, scatter, candlestick, and other visualizations.
  • Line charts can be updated by replacing their data, while presentation options include axes, legends, labels, and markers.
  • The library depends on external service access and image conversion, and it is a visualization tool rather than a trading method.

Tags

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