Download MetaTrader 5

pending orders to market orders ........

To add comments, please log in or register
Enable MQL5 Storage to store your source codes. It is free!
pascalboy
238
pascalboy 2013.12.09 19:42 
When i open a pending order it produces ticket number,ordertype etc.and can learn them with orderselect function.

But after the pending order realizes and it becomes a market order,does its ticket number,ordertype change and becomes a new order?and could its ticket number,ordertype etc be learned with another orderselect function?
(for example does its ordertype change from buy_limit to op_buy?
whroeder1
14514
whroeder1 2013.12.09 19:53  
The order type changes. Not sure about OrderOpenTime
pascalboy
238
pascalboy 2013.12.09 20:18  
What about order open price? Can orderselect function choose its open price as different?
whroeder1
14514
whroeder1 2013.12.09 20:28  
Of course. A pending order becomes a market order when the market touches the pending price and slippage can/will happen. If the market gaps, the new OrderOpenPrice can be much higher than the pending price. Tester does not mimic gaps.)
To add comments, please log in or register