Kaden407 #: How can I retrieve this number through report history?
"HistorySelectByPosition() creates in a mql5 program a list of orders and a list of deals with a specifiedposition identifierfor further reference to the elements of the list using the appropriate functions. To know the size of the list of deals, use functionHistoryDealsTotal(), the size of the list of orders in the history can be obtained usingHistoryOrdersTotal(). To run through elements of the orders list, useHistoryOrderGetTicket(), for elements of the deals list -HistoryDealGetTicket()."
Ryan L Johnson #: "HistorySelectByPosition() creates in a mql5 program a list of orders and a list of deals with a specifiedposition identifierfor further reference to the elements of the list using the appropriate functions. To know the size of the list of deals, use functionHistoryDealsTotal(), the size of the list of orders in the history can be obtained usingHistoryOrdersTotal(). To run through elements of the orders list, useHistoryOrderGetTicket(), for elements of the deals list -HistoryDealGetTicket()."
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
How can I retrieve this number through report history?
"HistorySelectByPosition() creates in a mql5 program a list of orders and a list of deals with a specified position identifier for further reference to the elements of the list using the appropriate functions. To know the size of the list of deals, use function HistoryDealsTotal(), the size of the list of orders in the history can be obtained using HistoryOrdersTotal(). To run through elements of the orders list, use HistoryOrderGetTicket(), for elements of the deals list - HistoryDealGetTicket()."