Trade Functions
This is the group of functions intended for managing trading activities.
Trading functions can be used in Expert Advisors and scripts. Trading functions can be called only if in the properties of the Expert Advisor or script the "Allow live trading" checkbox is enabled.
Function |
Action |
Sends trade requests to a server |
|
Returns the number of open positions |
|
Returns the symbol corresponding to the open position |
|
Chooses an open position for further working with it |
|
Returns the requested property of an open position (double) |
|
Returns the requested property of an open position (datetime or int) |
|
Returns the requested property of an open position (string) |
|
Returns the number of orders |
|
Return the ticket of a corresponding order |
|
Selects a order for further working with it |
|
Returns the requested property of the order (double) |
|
Returns the requested property of the order (datetime or int) |
|
Returns the requested property of the order (string) |
|
Retrieves the history of transactions and orders for the specified period of the server time |
|
Selects an order in the history for further working with it |
|
Returns the number of orders in the history |
|
Return order ticket of a corresponding order in the history |
|
Returns the requested property of an order in the history of (double) |
|
Returns the requested property of an order in the history (datetime or int) |
|
Returns the requested property of an order in the history of (string) |
|
Selects a deal in the history for further calling it through appropriate functions |
|
Returns the number of deals in the history |
|
Returns a ticket of a corresponding deal in the history |
|
Returns the requested property of a deal in the history (double) |
|
Returns the requested property of a deal in the history (datetime or int) |
|
Returns the requested property of a deal in the history (string) |
© 2000-2010, MetaQuotes Software Corp.
