Carl Schreiber #: Won't be the field length the same no matter whether it was filled with 0 or the highest possible number?
You are assuming that the whole structure is transmitted. Maybe it is not. Maybe only a compressed version is interchanged. We have no ideia how the protocol works.
Maybe the information of the orders are send via TCP/IP with a convention that allows "overloaded" inputs, like overloaded functions. I think that is very probable, because this would increase the performance.
This leads me to another question: Are brokers forced to handle the magic-numbers by law or something else? That they will have an ID for the deals and positions is obvious. Somehow they need to identify them. But are there contract agreements for brokers that use the metatrader-system, that forces them to handle the magic-number? Or will most of them handle it and some will not? Because they are obviously not forced to handle users comments.
The comments are used by the server to denote e.g. that the position was closed by SL. The magic number is not touched by the server to my knowledge.
But it is given very low priority. For example, it is not shown in some situations (list of results), although as a trader you could actually use it intelligently.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Maybe the information of the orders are send via TCP/IP with a convention that allows "overloaded" inputs, like overloaded functions. I think that is very probable, because this would increase the performance.
Comments can be changed and removed by the broker: (1) https://www.mql5.com/en/forum/252630 - (2) https://www.mql5.com/en/forum/130865
This leads me to another question: Are brokers forced to handle the magic-numbers by law or something else? That they will have an ID for the deals and positions is obvious. Somehow they need to identify them. But are there contract agreements for brokers that use the metatrader-system, that forces them to handle the magic-number? Or will most of them handle it and some will not? Because they are obviously not forced to handle users comments.
The comments are used by the server to denote e.g. that the position was closed by SL. The magic number is not touched by the server to my knowledge.
But it is given very low priority. For example, it is not shown in some situations (list of results), although as a trader you could actually use it intelligently.