HI, please give me some advice.
Below is the code sample to select the 2nd oldest opened order.
I want to do similar things.
I want to put ticket number and order profit in 2-dimentinal array.
[Ticket# , Profit]
#12, $12, #14, -$1, .......
I see that I can use for next roop code to select all orders, but how can I add OrderTicket() and OrderProfit() into 2-dimentioan array?
What I want is after putting these into Array, then I want to compaire the profit each other and select the order by ticket# and close it.
So it would be nice to put all into Array so that I can use easily.
int secondorder(int magic)
int secondticket, count;
if (OrderSymbol()!=Symbol() || OrderType()>1 || OrderMagicNumber()!=magic)
Sort by profit instead. When in doubt, THINK!
Please enable the necessary setting in your browser, otherwise you will not be able to log in.