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.
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.....
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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.