Improving Expert Advisor Robustness by Moving Display and Analysis Tasks
Summary
This article argues that a reliable, responsive Expert Advisor should focus on managing and analyzing orders and positions, while auxiliary chart features and data displays should run separately. It demonstrates moving wallpaper and Volume At Price functionality into indicators, and describes converting Times & Trade into a separate indicator with its own update and chart-event handling. The aim is to reduce work performed by the EA, especially during volatile periods when timely order handling matters.
The article presents code organization and execution-thread separation as design guidance, not as a measured performance study: it reports no benchmark results. It also notes that the conversion may require special handling for an indicator displayed in a subwindow, and that more work remains to improve reliability. Its practical lesson is to keep trading logic focused and place supporting functions in the platform component suited to them; the claimed performance benefit is plausible but not quantified here.
Key ideas
- Keep an Expert Advisor focused on analyzing and managing orders and positions.
- Move chart decoration and market-data displays into indicators when they are not part of the trading system.
- Separate platform tasks into the components designed to handle them, such as indicators, services, scripts, and Expert Advisors.
- Removing auxiliary work may preserve EA capacity during volatile periods, though the article gives no benchmark measurements.
- Use documentation, thread analysis, and benchmarking to assess reliability and performance.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.