This forum is in read-only mode now. You may discuss your questions on forums of MQL4.community and MQL5.community
Minimum order expiration time?Back to topics list |
|
davidwt
2005.08.30 19:14
I discovered that there must be some lower limit to the expiration parameter of OrderSend; ie, the order can only expire more than X minutes from the current time or the OrderSend() fails. What is X (the number of minutes or seconds from the current time)?
The following code would work on a 15min chart, but not on a 5min chart: datetime closetime = CurTime()+Period()*60*2; OrderSend(Symbol(), OP_SELLLIMIT, Lots, entryprice, 0, 0, 0, NULL, 0, [b]closetime[/b], Red); |
|
Slawa
2005.09.01 12:16
minimal expiration time is 600 seconds from current time
|
Download MetaTrader 5 (450 Kb, web installer) — a new terminal for financial markets
