MT5 Pending order
Code below shows how to set and delete pending order.
var api = new MT5API("45.76.194.231:443", 7371, "mt5api"); api.OnConnectStatus += ConnectionStatus; api.Connect(); string symbol = "EURUSD"; api.Subscribe(symbol); while (api.GetQuote(symbol) == null)     Thread.Sleep(1); var o = api.OrderSend(symbol, 100, 1.3, OrderType.BuyStop, 0, 0, 0, null, 0); Console.WriteLine(o.Ticket); api.OrderClose(o.Ticket, o.Symbol, o.OpenPrice, o.Volume, o.OrderType); Console.WriteLine("Deleted"); Console.ReadKey();