OrdersHistoryTotal

2019/07/17 19:00
229

int OrdersHistoryTotal()

端末内から読み込めるアカウントヒストリー内の決済された注文の数を返す。
ヒストリーリストサイズは端末の"Account history"タブの設定に依存する。

Sample:
// 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
}

コメント