Skip to content
All library documents

Formalizing Pending-Order Strategies with Trading Phases

Article MQL5 articles

Summary

The article presents a framework for describing and implementing strategies that actively manage pending orders. It separates market analysis, assessment of current positions and orders, and position management. Example approaches include scaling into a position with limit orders, stop-and-reverse sequences, pyramiding, and reopening after a stop loss; these can be combined into larger rule sets.

Its central method is to define operation phases from the current position and order state, then specify both the complete expected trading situation and the actions needed to reach it. The design accounts for failed order requests by retrying missing orders, and divides phases around market actions so an automated advisor can act promptly. The text also discusses identifying orders and positions with short comments. It describes a programming and strategy-formalization approach, not evidence that the example tactics are profitable. The cited testing is historical and limited to EURUSD on an hourly chart using an M1 OHLC model, so it does not establish robustness across markets or execution conditions.

Key ideas

  • Order strategies can be organized into market analysis, trading-situation analysis, and position management.
  • Scaling in, stop-and-reverse, pyramiding, and reopening are examples of pending-order strategy patterns.
  • Define each operating phase using minimal state information while specifying the full expected position and order configuration.
  • After a market action, check for and retry missing pending orders so transient failures do not leave the strategy incomplete.
  • The article explains strategy implementation and reports limited historical testing, not evidence of general profitability.

Tags

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