I've copied this query here from the blog. The forum seems a more appropriate place to answer this sort of question:
I am new to MQL5 and am in the process of converting an MQL4 program to MQL5. Could you please direct me to how to retrieve a list of open orders in MQL5? Corresponding to the OrderFields in MQ4(OrderSymbol(). OrderType(), etc. Basically what has to be done to process the MQL4 parsing of orders used in the Select
ex
Thanks in advance,Code:for(int i=0;i< OrdersTotal();i++) if (OrderSelect(i,SELECT_BY_POS,MODE_TRADES) && OrderSymbol() =="EURUSD") { some code }
Guillermo


Reply With Quote
