Skip to content
All library documents

Placing Equidistant Buy and Sell Stop-Limit Orders

Article MQL5 code base

Summary

This document describes a script for submitting a buy stop-limit order and a sell stop-limit order at equal distances from the current price. Its configurable inputs cover trade size, price deviation, order distance, stop-limit offset, stop loss, take profit, retry count, and pause between retries. Together, these parameters let a trader set the intended entry spacing and basic order-management values, while the retry settings address unsuccessful trade attempts.

The description and parameter list explain the intended functionality, but the script’s implementation and behavior are not included here. It gives no market, timeframe, entry rationale, fill assumptions, or evidence that the approach is profitable. Stop-limit orders may not execute if prices move through their limits, so the outline alone does not establish how missed or partially filled orders are handled. The document is best read as a description of an order-placement utility rather than a tested trading strategy.

Key ideas

  • The script is intended to place buy and sell stop-limit orders at equal distances from the current price.
  • Inputs configure order spacing, stop-limit offset, trade size, stop loss, and take profit.
  • Retry count and delay settings govern repeated attempts after unsuccessful trades.
  • The document does not provide implementation details or performance evidence.
  • Stop-limit orders may fail to fill when the market moves beyond their limit prices.

Tags

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