Real time order profit updates
To make real time profit updates for each order just need to use OnQuote event like below.
var api = new MT5API(62333850, "tecimil4", "78.140.180.198", 443);
api.OnQuote += delegate (MT5API sender, Quote quote)
{
foreach (var item in sender.GetOpenedOrders())
if (item.Symbol == quote.Symbol)
Console.WriteLine("Order " + item.Ticket + " updated profit = " + item.Profit);
};
api.Connect();