OrdersHistoryTotal
OrdersHistoryTotal
返回已结算订单在终端加载的账户历史记录中的数量。
int OrdersHistoryTotal();返回值
已结算订单在终端加载的账户历史记录中的数量。历史记录列表的大小取决于终端“账户历史”标签页当前的设置。
示例:
// retrieving info from trade history
int i,hstTotal=OrdersHistoryTotal();
for(i=0;i<hstTotal;i++)
{
//---- check selection result
if(OrderSelect(i,SELECT_BY_POS,MODE_HISTORY)==false)
{
Print("Access to history failed with error (",GetLastError(),")");
break;
}
// some work with order
}最后更新于