How to code to get the symbol name in the trade position comments? - page 2

 
Sathish Justin #: Thanks, whether the magic number can be a string.

No, the magic number is a number. For MQL5 it is a long integer of 64 bits. And as I stated, you can hash the symbol's name, and encode it, together with a compact representation of the time frame and an EA ID code, into that magic number.

 
R4tna C #:

This may help:

Hi Ratna,  Thanks and this perfectly works.  

Reason: