OnTradeTransaction(): no Magic number, no comment, and & either-or symbols? - page 2

 
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.

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.

Can I modify position comment?
Can I modify position comment?
  • 2018.06.07
  • www.mql5.com
The position comment is set by OrderSend as a parameter...
 

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.