Magic number in sample trailing-stop code does not make sense

 

Hi,


In the sample code there is a variable assigned
MagicNumber = 101090;

and later in the code it is compared to OrderMagicNumber which is a condition for the rest of the code to run.

What I read so far about magic numbers is that each order has a unique one - so how can this code be comparing it to 101090???

Any clarity on this would be appreciated.

Thanks
 
You can specify the MagicNumber in function OrderSend(). See also article MagicNumber: "Magic" Identifier of the Order.
Reason: