Magic number changed

 

My MT5 platform is changing the magic number from what is in my code.

I have several strategies running within a single EA. I have a base magic number for each EA: 12102301 then a strategy number for each strategy. 

So, the number might look something like this: 12102301267


I'm assuming that this number is too long, and the platform modifies it according to some rules.

Does anyone know the rules or Algorithm for calculating the new number?

I didn't notice this as I didn't have my analysis software set up. Now I'm trying to make sense of 6 months of data with magic numbers that don't match my code.

So, I'm not sure which strategies are which.


Thank you for any help

 
Peter McNeish:

My MT5 platform is changing the magic number from what is in my code.

I have several strategies running within a single EA. I have a base magic number for each EA: 12102301 then a strategy number for each strategy. 

So, the number might look something like this: 12102301267


I'm assuming that this number is too long, and the platform modifies it according to some rules.

Does anyone know the rules or Algorithm for calculating the new number?

I didn't notice this as I didn't have my analysis software set up. Now I'm trying to make sense of 6 months of data with magic numbers that don't match my code.

So, I'm not sure which strategies are which.


Thank you for any help

the magic value is a ulong so no issue with size. 

there is no 'calculating a new number', you assign it, so you need to check your code.