HistoryOrderGetTicket
Return the ticket of a corresponding order in the history.
ulong HistoryOrderGetTicket( |
Parameters
index
[in] Number of the order in the list of orders.
Return Value
Value of the ulong type.
Note
Do not confuse orders of a trading history with current pending orders that appear on the "Trade" tab of the "Toolbox" bar. The list of orders that were canceled or have led to a transaction, can be viewed in the "History" tab of "Toolbox" of the client terminal. The size of the list of orders and deals displayed in the "History" tab, depends on the depth of history that can be set manually or using the HistorySelect() function.
HistoryOrderGetTicket() not only returns the ticket of an order in history, but also selects it for future calling it using HistoryOrderGetDouble(), HistoryOrderGetInteger and HistoryOrderGetString. Thus, HistoryOrderSelect() selects an order for the specified ticket, while HistoryDealGetTicket() selects an order by its number in the list of orders in history.
Example:
void OnStart() |
See also
HistorySelect(), HistoryOrdersTotal(), HistoryOrderSelect(), Order Properties
© 2000-2010, MetaQuotes Software Corp.