Building Conditional Pending Requests to Remove and Modify Trades
Summary
This installment extends an MQL trading library’s pending-request system with requests to delete pending orders, change a position’s stop-loss or take-profit, and modify pending-order parameters. The functions are intended to let an expert advisor trigger these actions when user-defined conditions are met, alongside existing requests to open or close trades.
The article describes updates to request labels so they identify the action, order or position type, ticket when available, and request ID. It also outlines new trading-control methods for creating the deletion and modification requests. The broader aim is to provide building blocks for custom strategy behavior and, later, a visual strategy constructor. The material is primarily a software-library implementation guide: it shows declarations and class methods rather than a trading strategy or empirical performance analysis. It does not provide results demonstrating trading benefit, and the proposed visual tools and additional order types are future work.
Key ideas
- The library adds conditional requests to remove pending orders and modify position stops or pending-order parameters.
- Request labels are revised to include trade type and identifying information such as tickets and request IDs.
- The new trading-control methods extend existing support for creating pending requests to open and close trades.
- These facilities are intended as components for custom expert-advisor behavior, with a visual constructor described as a possible later application.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.