order pending

 
Slawa,

is it possible to set an order pending activation time and then an expiration of the same?
i want to trade news see www.fxengines.com I want to program the same concept in MT4.
 
Of course. Use
OrderModify(OrderTicket(),OrderOpenPrice(),OrderStopLoss(),OrderTakeProfit(),new_expiration_time);
 
Slawa,

is it possible to set an order pending activation time and then an expiration of the same?
i want to trade news see www.fxengines.com I want to program the same concept in MT4.




Yes you can. The expiration parameter sent in with the ordersend function will cancel your pending order if it is not triggered after that time. However, some brokers like FXDD, do no honor the expiration time sent in with your order. You will have to code in an order cancel subroutine to cancel your pending orders.

Hope this helps.
 
thanks.....
Reason: