MT4 Pending Order

easy direct connection to any MT4 and MT5 server

MT4 Pending Order

MainServer srv = QuoteClient.LoadSrv(@"GerchikCo-Demo.srv");
QuoteClient qc = new QuoteClient(67611, "wx1yhpn", srv.Host, srv.Port);
Console.WriteLine("Connecting...");
qc.Connect();
OrderClient oc = new OrderClient(qc);
oc.Connect();
Console.WriteLine("Connected to server");
Order order = oc.OrderSend("EURUSD", Op.BuyStop, 0.1, 1.4, 0, 0, 0, null, 0, new DateTime());
Console.WriteLine(order.Type + "order " + order.Ticket + " opened");
Console.WriteLine("Press any key...");
Console.ReadKey();
qc.Disconnect();
oc.Disconnect();

 

Leave a Reply