Custom Symbols for Synthetic Charts and Trading Strategy Stress Tests
Summary
The article explains how MetaTrader 5 custom symbols can store user-defined tick histories, contract properties, and price bars for Strategy Tester use. Traders can build synthetic instruments and non-time-based charts, including Renko, Range, and equal-volume bars, by aggregating incoming or historical ticks and saving the resulting rates. Custom symbol APIs also allow users to modify properties such as spread, precision, and margin settings, and to route orders from a synthetic chart toward a live instrument.
The main application is controlled experimentation: compare strategy behavior under altered transaction costs, artificial gaps, or different bar construction rules. The article notes practical constraints: custom-symbol cloud optimization is unavailable, required cross-rate histories must be loaded for tester calculations, properties are fixed during a test, and timestamps remain tied to the platform’s minute grid. These tools can expose sensitivity to data and trading frictions, but a favorable result in a constructed environment does not guarantee real-market performance; the article’s claim that robustness under severe stress signifies readiness should be treated as an assertion rather than demonstrated evidence.
Key ideas
- Custom symbols provide independent histories, contract properties, and Strategy Tester support.
- Tick aggregation can generate Renko, Range, or equal-volume bars for custom symbols.
- Synthetic symbols allow controlled tests of spreads, gaps, margin, and stop constraints.
- Custom-symbol optimization cannot run on the MQL5 Cloud Network, and symbol properties stay fixed during a test.
- Platform timestamps remain minute-based, so multiple generated bars may share a timestamp.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.