Building Chart Controls for an MQL5 Order Management System
Summary
This installment develops the visual controls for an MQL5 Expert Advisor’s order system. It adds a bitmap close or cancel button to chart objects that represent trade levels, positions the button alongside those objects, and expands an edit-field class to display signed values with color cues. The article also describes reading those displayed values back into the program, handling button events, and refreshing position information when chart objects are deleted or the chart changes.
The material is a software implementation guide, not a trading method or performance analysis. It shows how interface events can connect chart controls to order actions and position modifications. The author notes that the system is still incomplete at this stage: position movement functionality remains for a later article. No backtest or live trading evidence is provided, so the installment’s contribution is operational usability and interface design rather than demonstrated trading results.
Key ideas
- Bitmap chart objects can provide close or cancel controls for order-related visuals.
- Edit fields can display signed values with background colors that encode their sign.
- Chart events let an Expert Advisor respond to button actions and position changes.
- Deleted display objects can be detected and recreated to keep position information visible.
- The system remains unfinished, with position movement deferred to a later installment.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.