Skip to content
All library documents

Building Tick Price and Tick-Count Candle Indicators in MQL5

Article MQL5 articles

Summary

This article explains how to build two MQL5 indicators from incoming quote data: a tick chart that plots bid and ask prices, and tick candles that aggregate a chosen number of ticks per candle. The indicators store received prices in text files so data can be reloaded after a terminal restart and made available to other programs. The tick chart uses separate buffers for bid and ask, while the candle indicator derives open, high, low, and close values from groups of stored ticks.

The article walks through file naming, reading prior records, appending new quotes, and mapping tick values into indicator buffers. Its evidence is an implementation walkthrough and example output rather than a trading performance study. The indicators depend on the broker's quote stream and local saved data; the excerpt does not establish that tick aggregation improves signals or execution, and the historical record is limited to what has been captured and retained.

Key ideas

  • A tick chart can plot bid and ask prices as separate indicator lines.
  • Tick candles aggregate a user-selected count of incoming ticks into OHLC values.
  • Writing quotes to local files allows the indicators to restore captured data after restart.
  • The article demonstrates indicator construction and data handling, not a profitable strategy or predictive edge.

Tags

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