Skip to content
All library documents

Configuring a Sell Stop-Limit Order Script

Article MQL5 code base

Summary

This document describes a trading script for placing a sell stop-limit order and lists configurable inputs. These include a money-management value, permitted price deviation, the distance from the market at which to place the order, and the offset used to set the stop-limit price. It also exposes stop-loss and take-profit distances, plus retry count and pause duration for unsuccessful attempts.

The material is a parameter outline rather than a full explanation of order behavior or an evaluated strategy. It does not state the conditions under which the script is run, how position size is calculated, how broker constraints are handled, or what happens if a stop order triggers but the limit price cannot be filled. No market, test results, or performance evidence are provided. The listed defaults are examples of settings in the script, not recommendations for live trading.

Key ideas

  • The script is intended to place a sell stop-limit order.
  • Inputs control order distance, stop-limit offset, price deviation, and money management.
  • Stop-loss and take-profit distances can be specified as script parameters.
  • Retry count and delay settings govern repeated attempts after an unsuccessful trade request.
  • The document provides no strategy rationale, execution analysis, or evidence from testing.

Tags

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