Download MetaTrader 5

Pending order valid from time

To add comments, please log in or register
Do you know that MQL5 has structures?
Bronek536
261
Bronek536 2016.06.14 00:32 
Hi is anyone know how can I set pending order valid from specified time (spread is back)? Thanks
Osama Shaban
1444
Osama Shaban 2016.06.14 02:18  

You can't do that, but you should in this situation do the following ...

Suppose you want your Pending order is valid from 13:30 to 20:30 ...

Send the Pending order to server at 13:30 with duration of 7 hours.

Then, at 20:30, the order will deleted automatically.  

I believe there is no other way !. 

To add comments, please log in or register