The MQL function used to send trade requests to the server. It is used to execute market or pending orders via code. (In MQL4 it’s a built-in function; in MQL5 the same name exists but requires a MqlTradeRequest
structure.) In either case, OrderSend()
submits the trade (market or pending) to the broker’s server and returns success status.