Skip to content
All library documents

Visualizing Tick History and Spread on a MetaTrader Price Chart

Article MQL5 code base

Summary

This MetaTrader tool overlays historical price ticks on chart bars to show how bars formed, including the visible spread history and the development of the current real-time bar. The document explains that it is intended for visual inspection rather than use as a data-producing indicator: it has no indicator buffers, so accessing values through standard indicator interfaces is not useful.

Rendering every tick in the visible chart range can involve hundreds of thousands or millions of records and become very slow. The author recommends using short chart intervals, up to five minutes, and zooming in to inspect detail. The implementation is described as a modified version of an earlier indicator, with fixes and a filled region between selected bid and ask levels. It works with MetaTrader 5 tick data; the document says it displays nothing in MetaTrader 4 because that platform lacks the required tick data. No trading strategy or performance evidence is provided.

Key ideas

  • The tool displays historical tick movement and spread directly over chart bars.
  • It is intended for visual analysis and does not expose indicator buffers for programmatic reads.
  • Large visible tick histories can make rendering slow.
  • Short chart intervals and a closer zoom help keep tick visualization practical.
  • The described tick display requires MetaTrader 5 data and does not work in MetaTrader 4.

Tags

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