Skip to content
All library documents

Organizing Market Replay Data with Configurable Paths and Symbol Settings

Article MQL5 articles

Summary

This installment describes changes to a market replay and simulation system intended to support multiple assets and larger data collections. Its main change is a configurable data directory, specified once in a configuration file and then applied when loading symbol data. The article explains the implementation flow: add a private class variable, recognize a new configuration label, initialize the variable in the constructor, and use it when constructing data-file paths. It also shows how further configuration values can set custom-symbol trading properties such as tick value and volume step.

The author argues that centralized paths reduce repeated configuration and the chance of pointing to missing or incorrect data, while noting that they cannot eliminate such errors. The article is primarily a software implementation guide, not a trading method or empirical evaluation. It cautions that the configured symbol values have not yet been tested for suitability and that the replay system at this stage cannot handle Forex data without array-range errors. Its usefulness therefore lies in replay-system organization and configuration, with clear limits on supported data and validation.

Key ideas

  • A shared configurable data directory can simplify loading files for multiple replay instruments.
  • New settings require a class variable, configuration parsing, constructor initialization, and use in the loading routine.
  • The system can expose custom-symbol properties such as tick value and volume step through configuration entries.
  • Centralizing paths can reduce the chance of inconsistent or incorrect file locations but cannot prevent all errors.
  • The described version has unvalidated symbol settings and does not yet support Forex data replay reliably.

Tags

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