Questions from Beginners MQL5 MT5 MetaTrader 5 - page 1565

 

How about this?

deals=HistoryOrders Total(); 
last_deal=HistoryDeal GetTicket((int)deals-1);
 
Aleksei Stepanenko #:

How about this?

Yes, that's right, I've already realised it's another error in the function description from MQ.