MT4 Java Opened orders

easy direct connection to any MT4 and MT5 server

MT4 Java Opened orders

Here we show how to get all opened orders.

1 QuoteClient qc = new QuoteClient(2090221607, "OJgYhOfEF8", "demo.mt4tickmill.com", 443);
2 qc.Connect();
3 System.out.println("Connected. Balance = " + qc.AccountBalance());
4 for(Order order: qc.GetOpenedOrders())
5     System.out.println(order.Ticket + " " + order.Symbol + " " + order.Type);

Leave a Reply