MT5 Opened orders

easy direct connection to any MT4 and MT5 server

MT5 Opened orders

Example below shows how to get information about opened orders.

var api = new MT5API("45.76.194.231:443", 7371, "mt5api");
api.OnConnectStatus += ConnectionStatus;
api.Connect();
foreach (var order in api.OpenedOrders())
    Console.WriteLine(order.Ticket + " " + order.Symbol + " " + order.OrderType);
Console.ReadKey();

Leave a Reply