Skip to content
All library documents

Managing Price-Ranged Groups of Pending Orders

Article MQL5 code base

Summary

This trading script description explains how to place multiple pending buy or sell orders evenly across a specified price range, using a chosen point interval. It also describes bulk changes to take-profit and stop-loss levels, and deletion of untriggered orders. A setting determines whether deletion should also close orders that have already activated.

The listed controls include order direction, lot size, range endpoints, spacing, protective levels, a position identifier, and slippage. These features can reduce repetitive order management when a trader wants a ladder of pending orders around a price range. The document explains operational capabilities rather than a trading strategy: it gives no criteria for selecting the range or spacing, no rationale for order sizing, and no testing or performance evidence. The effect of slippage and the handling of activated trades depend on configuration and platform behavior.

Key ideas

  • The script can place a series of pending buy or sell orders across a configured price range.
  • Order spacing, lot size, take profit, and stop loss are configurable.
  • Users can modify protective levels across pending orders in one operation.
  • Deletion can be configured to include or preserve orders that have activated.
  • The description covers order management mechanics but does not provide a strategy or performance evidence.

Tags

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