The function selects a deal for further processing and returns the deal ticket in history. Prior to calling HistoryDealGetTicket(), first it is necessary to receive the history of deals and orders using the HistorySelect() or HistorySelectByPosition() function.
[in] Number of a deal in the list of deals
Value of the ulong type. If the function fails, 0 is returned.