Skip to content
All library documents

Placing Equidistant Buy and Sell Limit Orders

Article MQL5 code base

Summary

This document describes a trading script that places a buy limit order and a sell limit order at equal distances from the current price. Its listed inputs let the user configure money management, allowed price deviation, order spacing in points, stop loss and take profit distances, the number of retry attempts, and the pause between attempts. Together, these settings define order placement and basic trade handling when an attempt fails.

The page provides configuration details, but not the script’s implementation, an explanation of when this paired order setup is appropriate, or evidence from backtests or live trading. It also does not specify how the two orders interact if one fills, or how risk is managed beyond the stated stop loss and money management inputs. Treat it as a description of configurable order placement, not as evidence that the setup is profitable.

Key ideas

  • The script places buy and sell limit orders at equal distances from the current price.
  • Inputs control order spacing, price deviation, stop loss, take profit, and money management.
  • The script can retry unsuccessful trade attempts, with a configurable pause between attempts.
  • The document gives no performance evidence or detail on how the orders interact after a fill.

Tags

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