Skip to content
All library documents

Trade Execution Requests and Symbol-Specific Order Constraints

Article MQL5 code base

Summary

The document outlines a function for opening a trade in an MQL5 environment. It describes deriving an opening price and take-profit and stop-loss levels from symbol data and user parameters, then preparing a trade request with details such as instrument, volume, order type, permitted deviation, comment, and identifier before sending it for a result.

It also explains two supporting tasks: selecting a filling policy compatible with the symbol, and calculating a minimum allowable trading level using the symbol’s freeze and stop levels. These details concern order execution and broker constraints rather than a trading signal. The document provides no source implementation, error-handling guidance, examples, or evidence about execution quality, so it does not show how the described pieces behave across different brokers or instruments.

Key ideas

  • The opening function derives price and protective levels from symbol information and user inputs.
  • It packages trade parameters into a request and submits it for execution.
  • The filling policy should be selected to match the symbol’s allowed order behavior.
  • Freeze and stop levels inform the minimum permissible trade level.

Tags

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