int OrdersHistoryTotal( )
Returns the number of closed orders in the account history loaded into
the terminal. The history list size depends on the current settings of
the "Account history" tab of the terminal.
ターミナルのアカウント(口座)履歴で決済したオーダーの数を返します。履歴一覧の大きさはターミナルの "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
}
|