Skip to content
All library documents

Trading Tool Assistant: Order Controls, Pending Orders, and Risk Inputs

Article MQL5 code base

Summary

This document describes a chart-based assistant for placing and managing orders. Users can open buy or sell entries using a chosen lot size and entry count, close all orders or only those in profit or loss, and apply take-profit or stop-loss values across open orders. Other controls toggle trailing, create buy-limit or sell-limit pending orders at entered prices, remove pending orders, and close orders above or below a specified price.

The parameter notes mention trailing that can run on a timer, an option to set break-even stops for orders without stop losses, and stop-loss and take-profit distances for pending orders. A lot calculator takes a risk percentage and stop-loss distance as inputs and displays maximum lot and loss information. The document explains interface functions, but not the calculation formulas, execution safeguards, or trading results; it is an operational guide rather than evidence for a strategy.

Key ideas

  • Entry controls use a selected lot size and number of buy or sell orders.
  • Users can close orders by profit status, price level, or all at once.
  • The assistant can apply take-profit and stop-loss values to open orders.
  • Pending-order controls support buy-limit and sell-limit orders and bulk deletion.
  • The lot calculator uses a risk percentage and stop-loss distance to display lot and loss information.

Tags

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