datetime OrderCloseTime( )
Returns close time for the currently selected order. If order close time
is not 0 then the order selected and has been closed and retrieved from
the account history. Open and pending orders close time is equal to 0.
現在、選択されているオーダーの決済時刻を返します。オーダーの決済時刻が 0 ではない場合、選択オーダーの決済時刻をアカウント(口座)履歴から検索します。保有オーダー、待機中オーダーの決済時刻は
0 になります。
Note: The order must be previously selected by the OrderSelect() function.
注意:
オーダーは、OrderSelect() 関数で事前に選択されている必要があります。
Sample:
サンプル:
if(OrderSelect(10,SELECT_BY_POS,MODE_HISTORY)==true)
{
datetime ctm=OrderOpenTime();
if(ctm>0) Print("Open time for the order 10 ", ctm);
ctm=OrderCloseTime();
if(ctm>0) Print("Close time for the order 10 ", ctm);
}
else
Print("OrderSelect failed error code is",GetLastError());
|