Skip to content
All library documents

Building Tick-Based Market Replay with Configurable Data Files

Article MQL5 articles

Summary

This installment explains how to adapt a market replay system to rely on recorded traded ticks, including using tick files to generate preview bars. The author argues that minute bars may diverge from traded prices around events such as corporate actions, futures expirations, and bond issuance, so tick history can better preserve the price context traders actually faced. The replay configuration separates tick data used in simulation from preview data displayed alongside the replay.

The technical changes add flexible section parsing, normalize configuration labels despite spaces or case differences, and support comments. The article also describes cleanup of replay-created symbols and charts. These are implementation details for a MetaTrader replay tool, not a trading strategy. The case for collecting tick histories is conceptual: the article gives no comparison of replay accuracy or performance, and it does not quantify how much tick-based simulation changes results. Tick data also needs to be recorded in advance, since the author notes that missing historical ticks cannot be recovered reliably.

Key ideas

  • The replay system distinguishes traded ticks used for simulation from bar data used as chart previews.
  • The author argues that minute bars can misrepresent traded price context around market events and adjustments.
  • A configuration parser can normalize section labels and accept comments while keeping data types explicit.
  • Tick histories must be collected before they are needed because lost tick information may not be recoverable.
  • The article describes software behavior but does not quantify improvements in replay fidelity or trading performance.

Tags

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