Discussion of article "Library for easy and quick development of MetaTrader programs (part VII)" - page 2

 
BmC:

Artem, thank you!

In the method:

A "market order" is created dynamically

Then it is passed by reference to the method :

In the method"AddToListMarket" the market order is not considered in the hash_sum "hash_sum" then why should it be entered and controlled?
Please explain why we need it, if we can find out all the information from the position or pending order?

Market orders are orders to place either a market or pending order. They are not needed for the current needs of the library (tracking changes), but they are present in the list of library objects for quick manual retrieval. For example, to determine slippages or delays in execution.